From 84e5162f5281474744565887509dcea00104c311 Mon Sep 17 00:00:00 2001 From: Epixu Date: Thu, 7 Nov 2024 13:40:36 +0200 Subject: [PATCH] Flush. Always. --- source/Logger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Logger.cpp b/source/Logger.cpp index 94dbc22..65f3be8 100644 --- a/source/Logger.cpp +++ b/source/Logger.cpp @@ -122,6 +122,9 @@ void Interface::Write(const TextView& stdString) const noexcept { try { fmt::print("{}", stdString); } catch (...) { Logger::Append(""); } + // Always flush + fflush(stdout); + // Dispatch to duplicators for (auto attachment : mDuplicators) attachment->Write(stdString);