mirror of https://github.com/Icinga/icinga2.git
Flush logger stream after writing 'clear color' ANSI code.
This commit is contained in:
parent
b14027ec73
commit
dd9c7b9846
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue