Skip to content

Commit

Permalink
Flush. Always.
Browse files Browse the repository at this point in the history
  • Loading branch information
Epixu committed Nov 7, 2024
1 parent 92cc4b7 commit 84e5162
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ void Interface::Write(const TextView& stdString) const noexcept {
try { fmt::print("{}", stdString); }
catch (...) { Logger::Append("<logger error>"); }

// Always flush
fflush(stdout);

// Dispatch to duplicators
for (auto attachment : mDuplicators)
attachment->Write(stdString);
Expand Down

0 comments on commit 84e5162

Please sign in to comment.