Merge "logger: Fix default console settings."

This commit is contained in:
zuul 2016-09-21 12:22:35 -05:00 committed by Gerrit Code Review
commit ccc0bfa69c
1 changed files with 1 additions and 1 deletions

View File

@ -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);