From: Otto Moerbeek Date: Tue, 21 May 2024 13:03:02 +0000 (+0200) Subject: Two cases of wrong var (in code not compiled) X-Git-Tag: rec-5.1.0-beta1~31^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=766cb2804f51b17129fbb8abfc43c622bb4044ce;p=thirdparty%2Fpdns.git Two cases of wrong var (in code not compiled) Co-authored-by: Remi Gacogne --- diff --git a/pdns/recursordist/ratelimitedlog.hh b/pdns/recursordist/ratelimitedlog.hh index c390ffa081..a252bed557 100644 --- a/pdns/recursordist/ratelimitedlog.hh +++ b/pdns/recursordist/ratelimitedlog.hh @@ -50,7 +50,7 @@ public: { uint32_t count{}; if (doLog(count)) { - SLOG(g_log << Logger::Error << msg << " created an exception: " << except.what() << endl, + SLOG(g_log << Logger::Error << msg << " created an exception: " << stdException.what() << endl, slog->error(Logr::Error, stdException.what(), msg + " created an exception", "ratelimitingSkipped", Logging::Loggable(count), "exception", Logging::Loggable("std::exception"), args...)); @@ -62,7 +62,7 @@ public: { uint32_t count{}; if (doLog(count)) { - SLOG(g_log << Logger::Error << msg << " created an PDNSException: " << except.reason << endl, + SLOG(g_log << Logger::Error << msg << " created an PDNSException: " << pdnsException.reason << endl, slog->error(Logr::Error, pdnsException.reason, msg + " created an exception", "ratelimitingSkipped", Logging::Loggable(count), "exception", Logging::Loggable("PDNSException"), args...));