mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-08 11:10:09 +00:00
Log: Fix file log timestamps always enabled
This commit is contained in:
parent
36518a8df5
commit
f123677df4
@ -491,7 +491,8 @@ 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) {
|
||||
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());
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user