mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Flush logger stream after writing 'clear color' ANSI code.
This commit is contained in:
parent
b14027ec73
commit
dd9c7b9846
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue