diff options
author | Corey Farrell <git@cfware.com> | 2016-09-27 16:35:38 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2016-09-27 15:50:46 -0500 |
commit | 2d2a8944bed593e3cd2a66fe1b25288a62437423 (patch) | |
tree | 4992ef2ff713a73517404308b2170f845af4bd86 /main/logger.c | |
parent | 3f62485ba7275f66f9b2273982874e7c958ea3d4 (diff) |
logger: Output early verbose messages to console.
Verbose messages should be printed to the console if the sublevel is
less than option_verbose. This fix ensures the welcome message with
copyright and license are printed at daemon and interactive rasterisk
startup.
ASTERISK-26410 #close
Change-Id: Ia44235e30ec328aba92ea2c8a837b094e65c9a03
Diffstat (limited to 'main/logger.c')
-rw-r--r-- | main/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/logger.c b/main/logger.c index 0c839ffee..d4cd25122 100644 --- a/main/logger.c +++ b/main/logger.c @@ -1572,7 +1572,7 @@ static void logger_print_normal(struct logmsg *logmsg) break; } } - } else if (logmsg->level != __LOG_VERBOSE) { + } else if (logmsg->level != __LOG_VERBOSE || option_verbose >= logmsg->sublevel) { fputs(logmsg->message, stdout); } |