mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-22 16:25:39 +00:00
Log: Flush on every write
Slower, but if we crash, need the whole thing.
This commit is contained in:
parent
ce7bbb47d5
commit
44a12db931
|
@ -413,6 +413,7 @@ void Log::FileOutputLogCallback(void* pUserParam, const char* channelName, const
|
||||||
|
|
||||||
FormatLogMessageAndPrint(channelName, functionName, level, message, true, false, true, [](std::string_view message) {
|
FormatLogMessageAndPrint(channelName, functionName, level, message, true, false, true, [](std::string_view message) {
|
||||||
std::fwrite(message.data(), 1, message.size(), s_file_handle.get());
|
std::fwrite(message.data(), 1, message.size(), s_file_handle.get());
|
||||||
|
std::fflush(s_file_handle.get());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue