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
This commit is contained in:
Corey Farrell
2016-09-27 16:35:38 -04:00
parent 0b62db30ce
commit 013414ca4b

View File

@@ -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);
}