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 */)