From f123677df455c9da4a6a277494223f8d4d09b7ef Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 1 Jul 2025 17:57:38 +1000 Subject: [PATCH] Log: Fix file log timestamps always enabled --- src/common/log.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index 112e10133..b1d6d8962 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -491,10 +491,11 @@ void Log::FileOutputLogCallback(void* pUserParam, MessageCategory cat, const cha if (!s_state.file_output_enabled) return; - FormatLogMessageAndPrint(cat, functionName, message, true, false, [](std::string_view message) { - std::fwrite(message.data(), 1, message.size(), s_state.file_handle.get()); - std::fflush(s_state.file_handle.get()); - }); + FormatLogMessageAndPrint(cat, functionName, message, s_state.file_output_timestamp, false, + [](std::string_view message) { + std::fwrite(message.data(), 1, message.size(), s_state.file_handle.get()); + std::fflush(s_state.file_handle.get()); + }); } void Log::SetFileOutputParams(bool enabled, const char* filename, bool timestamps /* = true */)