mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
logger: Fix default console settings.
When logger.conf is missing or invalid we should be printing notices, warnings and errors to the console. The logmask was incorrectly calculated. Change-Id: Ibaa9465a8682854bc1a5e9ba07079bea1bfb6bb3
This commit is contained in:
@@ -471,7 +471,7 @@ static int init_logger_chain(int locked, const char *altconf)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
chan->type = LOGTYPE_CONSOLE;
|
chan->type = LOGTYPE_CONSOLE;
|
||||||
chan->logmask = __LOG_WARNING | __LOG_NOTICE | __LOG_ERROR;
|
chan->logmask = (1 << __LOG_WARNING) | (1 << __LOG_NOTICE) | (1 << __LOG_ERROR);
|
||||||
|
|
||||||
if (!locked) {
|
if (!locked) {
|
||||||
AST_RWLIST_WRLOCK(&logchannels);
|
AST_RWLIST_WRLOCK(&logchannels);
|
||||||
|
Reference in New Issue
Block a user