From dd9c7b984616cfd74cd39c68486169094b021413 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 8 Feb 2013 09:40:19 +0100 Subject: [PATCH] Flush logger stream after writing 'clear color' ANSI code. --- lib/base/streamlogger.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/base/streamlogger.cpp b/lib/base/streamlogger.cpp index 28042fdfb..6cc447a99 100644 --- a/lib/base/streamlogger.cpp +++ b/lib/base/streamlogger.cpp @@ -96,10 +96,12 @@ void StreamLogger::ProcessLogEntry(ostream& stream, bool tty, const LogEntry& en stream << "[" << timestamp << "] " << Logger::SeverityToString(entry.Severity) << "/" << entry.Facility << ": " - << entry.Message << std::endl; + << entry.Message; if (tty) stream << "\x1b[0m"; // clear colors + + stream << std::endl; } /** -- 2.40.0