From: Remi Gacogne Date: Wed, 28 Dec 2022 08:49:41 +0000 (+0100) Subject: rec: Add the 'parse packet from auth' error message to structured logging X-Git-Tag: dnsdist-1.8.0-rc1~143^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12368%2Fhead;p=thirdparty%2Fpdns.git rec: Add the 'parse packet from auth' error message to structured logging --- diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index 8a5a54acab..cc7f22414b 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; } }