From f73e9e606b61324f4ac34d3f506b7cbaf87713c7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 11 Aug 2023 12:39:49 +0100 Subject: Rename the error log level to critical. "ERROR" is apparently defined by more than just Windows. Let's pick a different name which is less likely to cause collisions. --- src/logging.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/logging.cpp') diff --git a/src/logging.cpp b/src/logging.cpp index 3bd4fc66f..809561056 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -25,8 +25,8 @@ const char* Log::LevelToString(Log::Level level) { switch (level) { - case Log::Level::ERROR: - return "error"; + case Log::Level::CRITICAL: + return "critical"; case Log::Level::WARNING: return "warning"; @@ -215,16 +215,16 @@ void Log::Manager::OpenLogs(bool requiremethods) } const Level level = tag->getEnum("level", Level::NORMAL, { - { "error", Level::ERROR }, - { "warning", Level::WARNING }, - { "normal", Level::NORMAL }, - { "debug", Level::DEBUG }, - { "rawio", Level::RAWIO }, + { "critical", Level::CRITICAL }, + { "warning", Level::WARNING }, + { "normal", Level::NORMAL }, + { "debug", Level::DEBUG }, + { "rawio", Level::RAWIO }, // Deprecated v3 names. - { "sparse", Level::ERROR }, - { "verbose", Level::WARNING }, - { "default", Level::NORMAL }, + { "sparse", Level::CRITICAL }, + { "verbose", Level::WARNING }, + { "default", Level::NORMAL }, }); TokenList types = tag->getString("type", "*", 1); -- cgit v1.3.1-10-gc9f91