Merge pull request #5839 from Sonicadvance1/208

FEX: Only fsync on assert
This commit is contained in:
LC authored and GitHub committed 2026-08-21 19:56:07 -04:00
commit b563703701
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) {