Fix: quiet option is not set in sessiond-config
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Apr 2018 18:40:32 +0000 (14:40 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Apr 2018 18:40:32 +0000 (14:40 -0400)
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 <stanislav.vovk@windriver.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index db92191c8c31a9e77e4c2c48d002ecbbcd7e0369..4968ee2a937194d2f344fa6a2b232656eec6acc9 100644 (file)
@@ -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) {
This page took 0.027201 seconds and 4 git commands to generate.