From: Corey Farrell Date: Tue, 20 Sep 2016 15:05:43 +0000 (-0400) Subject: logger: Fix default console settings. X-Git-Tag: 11.24.0-rc1~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86c72602f3600a7fccc9186d7ce813c5b94457ac;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/logger.c b/main/logger.c index 1424352380..802452e0b1 100644 --- a/main/logger.c +++ b/main/logger.c @@ -414,7 +414,7 @@ static int init_logger_chain(int locked, const char *altconf) return -1; } 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) { AST_RWLIST_WRLOCK(&logchannels);