]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Add the 'parse packet from auth' error message to structured logging 12368/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 28 Dec 2022 08:49:41 +0000 (09:49 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 28 Dec 2022 08:49:41 +0000 (09:49 +0100)
pdns/recursordist/pdns_recursor.cc

index 8a5a54acab4f6cb37806dfba25a413469ec3f85a..cc7f22414b5ddb2770443d0e7a897f41760ecf08 100644 (file)
@@ -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;
     }
   }