From 6b999a9c15fb2e876d2ca5ea815ac653a2e20321 Mon Sep 17 00:00:00 2001 From: Florian Fischer <florian.fl.fischer@fau.de> Date: Mon, 22 Mar 2021 23:11:59 +0100 Subject: [PATCH] [Debug] don't append new line to log message Let the user of emper_log decide if they want a newline (most LOGX macros do expect WDBG). Currently since most LOGX macros append a new line to the log message and emper_log adds one unconditionally we end up with an unnecessary empty line per log message. --- emper/Debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emper/Debug.cpp b/emper/Debug.cpp index 6c324828..c8cfd09b 100644 --- a/emper/Debug.cpp +++ b/emper/Debug.cpp @@ -55,7 +55,7 @@ void emper_log(const std::string& prefix, const std::string& message) { logMessage << message; std::unique_lock<std::mutex> lock(emper_log_mutex); - std::cerr << logMessage.str() << std::endl; + std::cerr << logMessage.str(); } // global log_level which can be changed to control the log output -- GitLab