lttng-sessiond spams logs when an invalid UST context is added to a channel
lttng-sessiond logs "Error: Invalid UST context" 4 times when an invalid UST context is added to a channel.
$ lttng add-context -u -t perf:cpu:L1-dcache-prefetches DEBUG1 - 11:11:40.917979 [26927/26974]: Setting relayd for session kernel-test (in cmd_setup_relayd() at cmd.c:764) Error: Invalid UST context Error: Invalid UST context Error: Invalid UST context Error: Invalid UST context Error: Context failed for channel channel0 DEBUG1 - 11:11:40.918002 [26927/26974]: Sending response (size: 16, retcode: UST invalid context (78)) (in thread_manage_clients() at main.c:4493)
The error should be logged only once, and would preferably include a timestamp like the other "DBG" statements.
The ERR macro could be redefined for the lttng client to omit that timestamp.
Updated by Jérémie Galarneau over 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset tools|commit:1cf992b8ff3eb5bf79e0c209f5e50f16b8d220d9.