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/92/3992/1
Corey Farrell 10 years ago
parent 3f62485ba7
commit 2d2a8944be

@ -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