mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-17 02:34:31 +02:00
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 << "] "
|
stream << "[" << timestamp << "] "
|
||||||
<< Logger::SeverityToString(entry.Severity) << "/" << entry.Facility << ": "
|
<< Logger::SeverityToString(entry.Severity) << "/" << entry.Facility << ": "
|
||||||
<< entry.Message << std::endl;
|
<< entry.Message;
|
||||||
|
|
||||||
if (tty)
|
if (tty)
|
||||||
stream << "\x1b[0m"; // clear colors
|
stream << "\x1b[0m"; // clear colors
|
||||||
|
|
||||||
|
stream << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user