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
changes/91/3991/1
Corey Farrell 10 years ago
parent 0b62db30ce
commit 013414ca4b

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

Loading…
Cancel
Save