From 9b686b051d74ea9c4b12c1639b1b603be6cc0ef2 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 28 Dec 2022 09:49:41 +0100 Subject: [PATCH] rec: Add the 'parse packet from auth' error message to structured logging --- pdns/recursordist/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index 8a5a54acab4f..cc7f22414b5d 100644 --- a/pdns/recursordist/pdns_recursor.cc +++ b/pdns/recursordist/pdns_recursor.cc @@ -2748,7 +2748,7 @@ static void handleUDPServerResponse(int fd, FDMultiplexer::funcparam_t& var) catch (std::exception& e) { t_Counters.at(rec::Counter::serverParseError)++; // won't be fed to lwres.cc, so we have to increment SLOG(g_log << Logger::Warning << "Error in packet from remote nameserver " << fromaddr.toStringWithPort() << ": " << e.what() << endl, - g_slogudpin->error(Logr::Warning, "Error in packet from remote nameserver", "from", Logging::Loggable(fromaddr))); + g_slogudpin->error(Logr::Warning, e.what(), "Error in packet from remote nameserver", "from", Logging::Loggable(fromaddr))); return; } }