From: Otto Moerbeek Date: Mon, 23 Jan 2023 15:44:56 +0000 (+0100) Subject: rec: backport 12368 to rec-4.8.x: Add the 'parse packet from auth' error message... X-Git-Tag: rec-4.8.2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12456%2Fhead;p=thirdparty%2Fpdns.git rec: backport 12368 to rec-4.8.x: Add the 'parse packet from auth' error message to structured logging --- 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; } }