From 3546fb4223566ebbbc8e6eff014b85b69a71e59b Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 2 Nov 2023 17:11:40 +0100 Subject: [PATCH] actually flush log lines --- pdns/logger.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/logger.cc b/pdns/logger.cc index 512807bcdc..c31651552d 100644 --- a/pdns/logger.cc +++ b/pdns/logger.cc @@ -19,6 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -115,7 +116,7 @@ void Logger::log(const string& msg, Urgency u) noexcept else { line << msg << endl; } - clog << line.str(); + clog << line.str() << std::flush; #ifndef RECURSOR mustAccount = true; #endif -- 2.47.2