From 83737755fc623bd43440333aeac338c17f8e327d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Thu, 24 Nov 2016 13:55:18 +0100 Subject: [PATCH] Changed Logger to print all status messages to std::cerr and not just errors. --- src/anthem/output/Logger.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/anthem/output/Logger.cpp b/src/anthem/output/Logger.cpp index 0160204..1918b4f 100644 --- a/src/anthem/output/Logger.cpp +++ b/src/anthem/output/Logger.cpp @@ -118,12 +118,7 @@ void Logger::log(Priority priority, const char *message) if (priorityID < static_cast(m_outputPriority)) return; - auto &stream = - (priorityID > static_cast(Priority::Warning)) - ? m_errorStream - : m_outputStream; - - stream + m_outputStream << priorityFormat(priority) << priorityName(priority) << ":" << ResetFormat() << " " << MessageBodyFormat << message