chore: static number number of priorities
This commit is contained in:
parent
04805d9a7e
commit
c73729e72e
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ static const char *g_priority[] = {"FATAL", "ERROR", "WARNING", "NOTE", "INF
|
||||||
"DEBUG1", "DEBUG2", "DEBUG3", "DEBUG4", "DEBUG5"};
|
"DEBUG1", "DEBUG2", "DEBUG3", "DEBUG4", "DEBUG5"};
|
||||||
|
|
||||||
// number of priorities
|
// number of priorities
|
||||||
static const int g_numPriority = (int)(sizeof(g_priority) / sizeof(g_priority[0]));
|
static const int g_numPriority = 11;
|
||||||
|
|
||||||
// if NDEBUG (not debug) is not specified, i.e. you're building in debug,
|
// if NDEBUG (not debug) is not specified, i.e. you're building in debug,
|
||||||
// then set default log level to DEBUG, otherwise the max level is INFO.
|
// then set default log level to DEBUG, otherwise the max level is INFO.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue