mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 07:00:20 +02:00
Merge pull request #5839 from Sonicadvance1/208
FEX: Only fsync on assert
This commit is contained in:
1 file changed
+3
-1
@@ -81,7 +81,9 @@ void MsgHandler(LogMan::DebugLevels Level, const char* Message) {
|
||||
const auto Style = DisableOutputColors ? fmt::text_style {} : LogMan::DebugLevelStyle(Level);
|
||||
const auto Output = fextl::fmt::format("{} {}\n", fmt::styled(LogMan::DebugLevelStr(Level), Style), Message);
|
||||
write(OutputFD, Output.c_str(), Output.size());
|
||||
fsync(OutputFD);
|
||||
if (Level == LogMan::DebugLevels::ASSERT) {
|
||||
fsync(OutputFD);
|
||||
}
|
||||
}
|
||||
|
||||
void AssertHandler(const char* Message) {
|
||||
|
||||
Reference in new issue
Block a user