summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/logger.c2
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);