From 43c62e1d3b090e43dbfa787ec36c0c8627c1b0a1 Mon Sep 17 00:00:00 2001 From: wxu Date: Thu, 6 Aug 2015 20:44:24 +0800 Subject: [PATCH] add fflush for logging module --- src/utils/logging.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/logging.hpp b/src/utils/logging.hpp index 96a1cfa17..6d0b98b5a 100644 --- a/src/utils/logging.hpp +++ b/src/utils/logging.hpp @@ -148,6 +148,7 @@ class Logger { vfprintf(log_fpo, fmt, lst); fprintf(log_fpo, "\n"); + fflush(log_fpo) ; // clear output buffer spthread_mutex_unlock(&mutex);