mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Tweak to logging.
When a cached answer is too big, log cached reply is truncated and not config reply is truncated
This commit is contained in:
@@ -2364,7 +2364,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
|
|||||||
if (!(ansp = skip_questions(header, qlen)))
|
if (!(ansp = skip_questions(header, qlen)))
|
||||||
return 0; /* bad packet */
|
return 0; /* bad packet */
|
||||||
anscount = nscount = addncount = 0;
|
anscount = nscount = addncount = 0;
|
||||||
log_query(F_CONFIG, "reply", NULL, "truncated", 0);
|
log_query(0, "reply", NULL, "truncated", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nxdomain)
|
if (nxdomain)
|
||||||
|
|||||||
Reference in New Issue
Block a user