From a5ee2fe1f54f2e59d2a3048800734d648586cf22 Mon Sep 17 00:00:00 2001 From: "Martin Felis (berta win)" Date: Thu, 8 Apr 2010 20:27:38 +0200 Subject: [PATCH] logfile gets now always flushed when writing new log entries --- engine/Logging.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/Logging.cc b/engine/Logging.cc index d538a32..59f1842 100644 --- a/engine/Logging.cc +++ b/engine/Logging.cc @@ -67,6 +67,7 @@ void Logging::Log (LogLevel level, const char *str, ...) { time_t timer = time(NULL); std::string timestr (asctime(localtime(&timer))); mLogFileOut << timestr.substr(0, timestr.size() - 1) << ' ' << msg << std::endl; + mLogFileOut.flush(); } }