FEX: Only fsync on assert

The rest of the messages should be buffered, no reason to sync those.
This commit is contained in:
Ryan Houdek committed 2026-08-21 16:26:14 -07:00
1 parent bf30f6af4c
commit 0717f4689b
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) {