summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalkierian <malkierian@gmail.com>2025-11-11 10:03:14 -0700
committerGitHub <noreply@github.com>2025-11-11 10:03:14 -0700
commit5629d033c274f6335a552e80ba90a17246ffd5cd (patch)
treef6f6754ccfa4f5d6ed47265b56b6515e48dda87c
parent3eade8133ebfdc6f026715f7053293cf8f7dcdbf (diff)
Forgot to get CVar value with the default specified in OTRGlobals to feed into InitLogging. (#5952)
-rw-r--r--soh/soh/OTRGlobals.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp
index c6e2ac4b8..213b99820 100644
--- a/soh/soh/OTRGlobals.cpp
+++ b/soh/soh/OTRGlobals.cpp
@@ -297,10 +297,12 @@ void OTRGlobals::Initialize() {
#else
auto defaultLogLevel = spdlog::level::info;
#endif
- context->InitLogging(defaultLogLevel, defaultLogLevel);
+ auto logLevel =
+ static_cast<spdlog::level::level_enum>(CVarGetInteger(CVAR_DEVELOPER_TOOLS("LogLevel"), defaultLogLevel));
+ context->InitLogging(logLevel, logLevel);
+ Ship::Context::GetInstance()->GetLogger()->set_pattern("[%H:%M:%S.%e] [%s:%#] [%l] %v");
context->InitConfiguration();
context->InitConsoleVariables();
- Ship::Context::GetInstance()->GetLogger()->set_pattern("[%H:%M:%S.%e] [%s:%#] [%l] %v");
context->InitGfxDebugger();
context->InitFileDropMgr();