From ca3df1e877c8d55404d40e537f33ff2c2b33a3f9 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 23 Jan 2023 16:44:56 +0100 Subject: [PATCH] rec: backport 12368 to rec-4.8.x: Add the 'parse packet from auth' error message to structured logging --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index b7446a9fc2..05a7bf325e 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2744,7 +2744,7 @@ static void handleUDPServerResponse(int fd, FDMultiplexer::funcparam_t& var) catch (std::exception& e) { g_stats.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; } } -- 2.47.2