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:45:32 +0000 (14:45 -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 30f3b714e33454400d5171f48f43bb35f43feeca..313e66e76cf965049fd5491410ae4c4c718a477a 100644 (file)
@@ -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) {
This page took 0.027015 seconds and 4 git commands to generate.