2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 21:47:59 +00:00

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.
This commit is contained in:
Michał Kępień 2024-12-31 05:40:48 +01:00
parent c5555a5ca2
commit 58d38352ee
No known key found for this signature in database

View File

@ -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);