From: Peter van Dijk Date: Thu, 2 Nov 2023 16:11:40 +0000 (+0100) Subject: actually flush log lines X-Git-Tag: rec-5.0.0-rc1~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3546fb4223566ebbbc8e6eff014b85b69a71e59b;p=thirdparty%2Fpdns.git actually flush log lines --- 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