From 3156953c805595b092f698927dd609b8ce29859e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Herje?= Date: Fri, 15 Mar 2024 14:25:15 +0100 Subject: [PATCH] Add std::flush to RiaStdOutLogger::writeMessageToLogger For testing of instant std::cout when running in console mode --- ApplicationLibCode/Application/Tools/RiaLogging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationLibCode/Application/Tools/RiaLogging.cpp b/ApplicationLibCode/Application/Tools/RiaLogging.cpp index 014dcfc281..ae4cb35c9a 100644 --- a/ApplicationLibCode/Application/Tools/RiaLogging.cpp +++ b/ApplicationLibCode/Application/Tools/RiaLogging.cpp @@ -358,7 +358,7 @@ void RiuMessageLoggerBase::writeMessageWithPrefixToLogger( const char* prefix, c //-------------------------------------------------------------------------------------------------- void RiaStdOutLogger::writeMessageToLogger( const std::string& str ) { - std::cout << str; + std::cout << str << std::flush; } //--------------------------------------------------------------------------------------------------