Flush logger stream after writing 'clear color' ANSI code.

This commit is contained in:
Gunnar Beutner 2013-02-08 09:40:19 +01:00
parent b14027ec73
commit dd9c7b9846
1 changed files with 3 additions and 1 deletions

View 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;
}
/**