From c73729e72e95df0d1dad8b89b8d061b81777906f Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Tue, 20 May 2025 19:48:03 -0400 Subject: [PATCH] chore: static number number of priorities --- src/lib/base/Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/base/Log.cpp b/src/lib/base/Log.cpp index c1d1d3e09..87c8ea1ea 100644 --- a/src/lib/base/Log.cpp +++ b/src/lib/base/Log.cpp @@ -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.