]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not report DNS answers without A/AAAA records by default (#1369)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 4 Jun 2023 19:41:19 +0000 (19:41 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 10 Jun 2023 17:15:27 +0000 (17:15 +0000)
commit7efc7a7b2c5c6b6120ef8d670f5fbbf7124a8f76
tree51280135edd033f12e71f1efe0b0bd210061db88
parente23389df562169410edeb19d0756287b64b762d5
Do not report DNS answers without A/AAAA records by default (#1369)

Default (i.e. level-0/1) cache.log error reports should focus on
problems that may affect Squid components or transaction security rather
than on individual transaction failures due to external agents (that
most Squid admins cannot prevent or fix). The latter should be detailed
in access.log, where individual transactions are reported.

We were already using this principle for ipcache_entry::latestError()
calls except for one call devoted to DNS responses that have no A/AAAA
records in the answer section _but_ have other records in that section.
Removing that exceptional treatment simplifies Squid code and addresses
admin complaints about cache.log pollution with minor error messages
that they often cannot prevent or stop.
src/ipcache.cc