]> granicus.if.org Git - icinga2/commitdiff
Flush logger stream after writing 'clear color' ANSI code.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 8 Feb 2013 08:40:19 +0000 (09:40 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 8 Feb 2013 08:40:19 +0000 (09:40 +0100)
lib/base/streamlogger.cpp

index 28042fdfb698c7f218419b964fb8ba28cf2a75bb..6cc447a99171247c784554e04cfcb89669ca88af 100644 (file)
@@ -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;
 }
 
 /**