From 6d9a9c6575be8bcf86f404236a0f4a78b4889881 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 10 Apr 2018 14:40:32 -0400 Subject: [PATCH] Fix: quiet option is not set in sessiond-config MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng-sessiond/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index db92191c8..4968ee2a9 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -4929,7 +4929,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) { -- 2.34.1