]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Two cases of wrong var (in code not compiled)
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 21 May 2024 13:03:02 +0000 (15:03 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 21 May 2024 13:47:33 +0000 (15:47 +0200)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/recursordist/ratelimitedlog.hh

index c390ffa081592b9ba2c26a212d2abeb1cb05767c..a252bed5570e34687057556355bd748ff8ef8e57 100644 (file)
@@ -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...));