From 4bd95fe16383fcfb80dee986051950c464f40a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Thu, 24 Nov 2016 23:37:15 +0100 Subject: [PATCH] Printing all status messages to std::cerr. --- src/anthem/output/Logger.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/anthem/output/Logger.cpp b/src/anthem/output/Logger.cpp index 1332ab7..3313ca7 100644 --- a/src/anthem/output/Logger.cpp +++ b/src/anthem/output/Logger.cpp @@ -99,7 +99,7 @@ void Logger::log(Priority priority, const char *message) if (priorityID < static_cast(m_logPriority)) return; - m_outputStream + m_errorStream << priorityFormat(priority) << priorityName(priority) << ":" << ResetFormat() << " " << MessageBodyFormat << message @@ -115,12 +115,7 @@ void Logger::log(Priority priority, const input::Location &location, const char if (priorityID < static_cast(m_logPriority)) return; - auto &stream = - (priorityID > static_cast(Priority::Warning)) - ? m_errorStream - : m_outputStream; - - stream + m_errorStream << LocationFormat << location.sectionStart << ":" << location.rowStart << ":" << location.columnStart << ": " << priorityFormat(priority) << priorityName(priority) << ":"