summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();