chore: static number number of priorities

This commit is contained in:
sithlord48 2025-05-20 19:48:03 -04:00 committed by Nick Bolton
parent 04805d9a7e
commit c73729e72e

View file

@ -24,7 +24,7 @@ static const char *g_priority[] = {"FATAL", "ERROR", "WARNING", "NOTE", "INF
"DEBUG1", "DEBUG2", "DEBUG3", "DEBUG4", "DEBUG5"};
// 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,
// then set default log level to DEBUG, otherwise the max level is INFO.