From 7fad3df66733566a63eccdde61585c5b98642585 Mon Sep 17 00:00:00 2001 From: "kevin.larke" Date: Thu, 16 Apr 2020 20:09:13 -0400 Subject: [PATCH] cwLog.cpp : flush() output in defaultOutput(). --- cwLog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cwLog.cpp b/cwLog.cpp index 366d0b8..201ea38 100644 --- a/cwLog.cpp +++ b/cwLog.cpp @@ -127,6 +127,7 @@ void cw::log::defaultOutput( void* arg, unsigned level, const char* text ) { FILE* f = level >= kWarning_LogLevel ? stderr : stdout; fprintf(f,"%s",text); + fflush(f); } void cw::log::defaultFormatter( void* cbArg, logOutputCbFunc_t outFunc, void* outCbArg, unsigned level, const char* function, const char* filename, unsigned lineno, int sys_errno, rc_t rc, const char* msg )