Forgot to get CVar value with the default specified in OTRGlobals to feed into InitLogging. (#5952)

This commit is contained in:
Malkierian
2025-11-11 10:03:14 -07:00
committed by GitHub
parent 3eade8133e
commit 5629d033c2

View File

@@ -297,10 +297,12 @@ void OTRGlobals::Initialize() {
#else #else
auto defaultLogLevel = spdlog::level::info; auto defaultLogLevel = spdlog::level::info;
#endif #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->InitConfiguration();
context->InitConsoleVariables(); context->InitConsoleVariables();
Ship::Context::GetInstance()->GetLogger()->set_pattern("[%H:%M:%S.%e] [%s:%#] [%l] %v");
context->InitGfxDebugger(); context->InitGfxDebugger();
context->InitFileDropMgr(); context->InitFileDropMgr();