diff options
author | Corey Farrell <git@cfware.com> | 2016-09-20 11:16:42 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2016-09-20 13:03:19 -0400 |
commit | 74f562a8e2da5acdcde12d58f41e231962236ef9 (patch) | |
tree | f5ad2d0817163a760531509c4844bf06da952486 /main/logger.c | |
parent | d36da3a26b8910a298da9f4d015b1edcecf62593 (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/logger.c')
-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 9a16dcf13..db3d7a730 100644 --- a/main/logger.c +++ b/main/logger.c @@ -663,7 +663,7 @@ static int init_logger_chain(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); memcpy(&chan->formatter, &logformatter_default, sizeof(chan->formatter)); AST_RWLIST_INSERT_HEAD(&logchannels, chan, list); |