aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2012-11-22 23:04:43 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2012-11-23 10:29:37 +0100
commitde2a2618f3efb846b2d2e0d71591dc583822b4c2 (patch)
treecd14e51ccf1974c9c793eaaa6c5f3ae420086513
parentc55bc3cba69ff36a8f86fdfd60e11b2faf7de745 (diff)
Logger: Flush output after every line
Task-number: QBS-163 Change-Id: Icc1dcf3c0e7839945fdfa8f1e4e79b8a7e6ef9c8 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
-rw-r--r--src/lib/logging/consolelogger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/logging/consolelogger.cpp b/src/lib/logging/consolelogger.cpp
index 6c085da14..8bddba267 100644
--- a/src/lib/logging/consolelogger.cpp
+++ b/src/lib/logging/consolelogger.cpp
@@ -65,6 +65,7 @@ void ConsolePrintLogSink::outputLogMessage(LoggerLevel level, const LogMessage &
}
}
fprintfWrapper(message.textColor, file, "%s\n", message.data.data());
+ fflush(file);
}
void ConsolePrintLogSink::fprintfWrapper(TextColor color, FILE *file, const char *str, ...)