Changed Logger to print all status messages to std::cerr and not just errors.

This commit is contained in:
Patrick Lühne 2016-11-24 13:55:18 +01:00
parent eff3b45089
commit 83737755fc
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -118,12 +118,7 @@ void Logger::log(Priority priority, const char *message)
if (priorityID < static_cast<int>(m_outputPriority)) if (priorityID < static_cast<int>(m_outputPriority))
return; return;
auto &stream = m_outputStream
(priorityID > static_cast<int>(Priority::Warning))
? m_errorStream
: m_outputStream;
stream
<< priorityFormat(priority) << priorityName(priority) << ":" << priorityFormat(priority) << priorityName(priority) << ":"
<< ResetFormat() << " " << ResetFormat() << " "
<< MessageBodyFormat << message << MessageBodyFormat << message