Add std::flush to RiaStdOutLogger::writeMessageToLogger

For testing of instant std::cout when running in console mode
This commit is contained in:
Jørgen Herje 2024-03-15 14:25:15 +01:00
parent 2207bf47e8
commit 3156953c80

View File

@ -358,7 +358,7 @@ void RiuMessageLoggerBase::writeMessageWithPrefixToLogger( const char* prefix, c
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RiaStdOutLogger::writeMessageToLogger( const std::string& str ) void RiaStdOutLogger::writeMessageToLogger( const std::string& str )
{ {
std::cout << str; std::cout << str << std::flush;
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------