diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index 9363caa748..73e95ca215 100644 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -181,7 +181,7 @@ void ast_console_toggle_loglevel(int fd, int level, int state); #endif #define AST_LOG_DTMF __LOG_DTMF, _A_ -#define NUMLOGLEVELS 7 +#define NUMLOGLEVELS 32 /*! * \brief Get the debug level for a module diff --git a/main/logger.c b/main/logger.c index 60fd879a51..a701a832c9 100644 --- a/main/logger.c +++ b/main/logger.c @@ -162,7 +162,7 @@ static FILE *qlog; * logchannels list. */ -static char *levels[32] = { +static char *levels[NUMLOGLEVELS] = { "DEBUG", "---EVENT---", /* no longer used */ "NOTICE", @@ -173,7 +173,7 @@ static char *levels[32] = { }; /*! \brief Colors used in the console for logging */ -static const int colors[32] = { +static const int colors[NUMLOGLEVELS] = { COLOR_BRGREEN, COLOR_BRBLUE, /* no longer used */ COLOR_YELLOW,