diff options
author | Corey Farrell <git@cfware.com> | 2016-09-20 11:05:43 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2016-09-20 12:01:57 -0500 |
commit | 610eb4c1893a5b002122aea4cad1e7a0c6f1bab9 (patch) | |
tree | 7d2d66265f8a8810bc6081788d5d44b7b1aec36c /main | |
parent | 34461b89ace3742056100bb226a3c0c2d90ca5ff (diff) |
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
Diffstat (limited to 'main')
-rw-r--r-- | main/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/logger.c b/main/logger.c index a70b6d15e..9fda4b342 100644 --- a/main/logger.c +++ b/main/logger.c @@ -471,7 +471,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); |