aboutsummaryrefslogtreecommitdiff
path: root/src/logging.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-08-11 12:39:49 +0100
committerGravatar Sadie Powell2023-08-11 12:39:49 +0100
commitf73e9e606b61324f4ac34d3f506b7cbaf87713c7 (patch)
tree1ca0ac7ed371483bd1d9a3fbec3959af61067dbb /src/logging.cpp
parentMake the linkdata host/unix cloaks longer to test suffix truncation. (diff)
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.
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp20
1 files changed, 10 insertions, 10 deletions
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);