From 58d38352eebbc6ed3c917c52ac693d3df8a3b94c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Tue, 31 Dec 2024 05:40:48 +0100 Subject: [PATCH] Adjust dns_message_logpacketfromto() log prefixes Ensure the log prefixes passed to the dns_message_logpacketfromto() function by its callers do not include the words "from" or "to" as those are now emitted by the logfmtpacket() helper function. --- lib/dns/resolver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 17e24c3ef7..9ae536eb4a 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -2715,9 +2715,9 @@ resquery_send(resquery_t *query) { } dns_message_logpacketfromto( - fctx->qmessage, "sending packet to", la, &query->addrinfo->sockaddr, - DNS_LOGCATEGORY_RESOLVER, DNS_LOGMODULE_PACKETS, - ISC_LOG_DEBUG(11), fctx->mctx); + fctx->qmessage, "sending packet", la, + &query->addrinfo->sockaddr, DNS_LOGCATEGORY_RESOLVER, + DNS_LOGMODULE_PACKETS, ISC_LOG_DEBUG(11), fctx->mctx); /* * We're now done with the query message. @@ -9736,7 +9736,7 @@ rctx_logpacket(respctx_t *rctx) { } dns_message_logpacketfromto( - rctx->query->rmessage, "received packet from", + rctx->query->rmessage, "received packet", &rctx->query->addrinfo->sockaddr, la, DNS_LOGCATEGORY_RESOLVER, DNS_LOGMODULE_PACKETS, ISC_LOG_DEBUG(10), fctx->mctx);