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(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();