Skip to content

Commit

Permalink
Merge pull request PowerDNS#12368 from rgacogne/rec-add-missing-excep…
Browse files Browse the repository at this point in the history
…tion-reason-parse-auth-packet

rec: Add the 'parse packet from auth' error message to structured logging
  • Loading branch information
omoerbeek authored Jan 2, 2023
2 parents 9d16c91 + 9b686b0 commit 2392291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/recursordist/pdns_recursor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 2392291

Please sign in to comment.