mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-08 19:20:08 +00:00
Log: Fix file log timestamps always enabled
This commit is contained in:
parent
36518a8df5
commit
f123677df4
@ -491,10 +491,11 @@ void Log::FileOutputLogCallback(void* pUserParam, MessageCategory cat, const cha
|
|||||||
if (!s_state.file_output_enabled)
|
if (!s_state.file_output_enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
FormatLogMessageAndPrint(cat, functionName, message, true, false, [](std::string_view message) {
|
FormatLogMessageAndPrint(cat, functionName, message, s_state.file_output_timestamp, false,
|
||||||
std::fwrite(message.data(), 1, message.size(), s_state.file_handle.get());
|
[](std::string_view message) {
|
||||||
std::fflush(s_state.file_handle.get());
|
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 */)
|
void Log::SetFileOutputParams(bool enabled, const char* filename, bool timestamps /* = true */)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user