Changed Logger to print all status messages to std::cerr and not just errors.
This commit is contained in:
parent
eff3b45089
commit
83737755fc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user