From 813c0dab174924791ef5b1b207c4151c49ee8ecb Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 20 Aug 2023 21:07:13 +0200 Subject: [PATCH] source/System/Log.cpp: make sure the writer is flushed after we write a line. --- source/System/Log.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/System/Log.cpp b/source/System/Log.cpp index b2d9226..30fb38f 100644 --- a/source/System/Log.cpp +++ b/source/System/Log.cpp @@ -85,6 +85,7 @@ void Log::writeln(Type type, const char *format, va_list args) len = sprintf(buf, "%s: %s\n", prefix, msg); _writer->write(buf, len); + _writer->flush(); } } // namespace sp