From: Jérémie Galarneau Date: Tue, 10 Apr 2018 18:40:32 +0000 (-0400) Subject: Fix: quiet option is not set in sessiond-config X-Git-Tag: v2.10.4~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e1ccb98914702febb96db3c297d8fb70e6d6b350;p=lttng-tools.git Fix: quiet option is not set in sessiond-config The quiet option is currently set directly while parsing the command line options of the lttng-sessiond. Since it is not set in the sessiond configuration object, its default value (false) overwrites the lttng_opt_quiet option when the configuration is applied. Reported-by: Stanislav Vovk Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 30f3b714e..313e66e76 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -4720,7 +4720,7 @@ static int set_option(int opt, const char *arg, const char *optname) } else if (string_match(optname, "no-kernel")) { config.no_kernel = true; } else if (string_match(optname, "quiet") || opt == 'q') { - lttng_opt_quiet = true; + config.quiet = true; } else if (string_match(optname, "verbose") || opt == 'v') { /* Verbose level can increase using multiple -v */ if (arg) {