SpdLog: flush the tools logger

Must manually kill the pointer on shutdown to flush it since this one is allocated by us and thus not managed by SpdLog.
This commit is contained in:
Kawe Mazidjatari 2024-01-14 11:24:42 +01:00
parent 3fa0f25616
commit a809816f70

View File

@ -110,4 +110,8 @@ void SpdLog_Init(const bool bAnsiColor)
void SpdLog_Shutdown()
{
spdlog::shutdown();
#ifdef _TOOLS
// Destroy the tools logger to flush it.
g_SuppementalToolsLogger.reset();
#endif // !_TOOLS
}