From 846210fde3574bc9b5c7d9ed028d4e232d843d41 Mon Sep 17 00:00:00 2001 From: Mingming Cui Date: Fri, 27 Oct 2023 08:11:27 +0800 Subject: [PATCH] fix logging --- src/Installer/dllmain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Installer/dllmain.cpp b/src/Installer/dllmain.cpp index 80620b9..3de2bd1 100644 --- a/src/Installer/dllmain.cpp +++ b/src/Installer/dllmain.cpp @@ -14,6 +14,7 @@ static void Initialize() } spdlog::set_default_logger(CreateLogger()); + spdlog::flush_on(spdlog::level::info); Installer::Initialize(); } catch (...) @@ -23,6 +24,7 @@ static void Initialize() static void Shutdown() { Installer::Shutdown(); + spdlog::shutdown(); } BOOL APIENTRY DllMain( HMODULE hModule,