aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.cpp
diff options
context:
space:
mode:
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);