From 7fcd7fa2d48318870cdb9050798b7381690afa39 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 21 May 2024 15:03:02 +0200 Subject: [PATCH] Two cases of wrong var (in code not compiled) Co-authored-by: Remi Gacogne (cherry picked from commit 766cb2804f51b17129fbb8abfc43c622bb4044ce) --- pdns/recursordist/ratelimitedlog.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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...)); -- 2.47.3