From 56c0a7933b4c695c92784ac7dcce7b6a94732d91 Mon Sep 17 00:00:00 2001 From: Richard Fortier Date: Tue, 17 Feb 2026 17:02:13 -0500 Subject: [PATCH] According to spdlog:: docs, invoking spdlog::shutdown() before continuing to the crash exit will flush all logs synchronously before returning. --- Code/client/CrashHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/client/CrashHandler.cpp b/Code/client/CrashHandler.cpp index 986dcb60c..196608049 100644 --- a/Code/client/CrashHandler.cpp +++ b/Code/client/CrashHandler.cpp @@ -101,7 +101,7 @@ LONG WINAPI VectoredExceptionHandler(PEXCEPTION_POINTERS pExceptionInfo) } } - spdlog::default_logger()->flush(); + spdlog::shutdown(); // Something in STR breaks top-level unhandled exception filters. // The Win API for them is pretty clunky (non-atomic, not chainable),