From 09024bda0ccbc8c7cf89f57607292db8a7fdbe87 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 21 May 2021 15:45:54 +0200 Subject: [PATCH] rec: distinguish the various 'Removing irrelevant record' log lines --- pdns/syncres.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 2cb4d08ea2..a4b84b6e92 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -2914,7 +2914,7 @@ void SyncRes::sanitizeRecords(const std::string& prefix, LWResult& lwr, const DN } if (rec->d_place == DNSResourceRecord::ANSWER && (qtype != QType::ANY && rec->d_type != qtype.getCode() && s_redirectionQTypes.count(rec->d_type) == 0 && rec->d_type != QType::SOA && rec->d_type != QType::RRSIG)) { - LOG(prefix<<"Removing irrelevant record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the ANSWER section received from "<d_place == DNSResourceRecord::AUTHORITY && rec->d_type != QType::NS && rec->d_type != QType::DS && rec->d_type != QType::SOA && rec->d_type != QType::RRSIG && rec->d_type != QType::NSEC && rec->d_type != QType::NSEC3) { - LOG(prefix<<"Removing irrelevant record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the AUTHORITY section received from "<d_place == DNSResourceRecord::AUTHORITY && rec->d_type == QType::SOA) { if (!qname.isPartOf(rec->d_name)) { - LOG(prefix<<"Removing irrelevant record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_content->getZoneRepresentation()<<"' in the AUTHORITY section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the AUTHORITY section received from "<d_place == DNSResourceRecord::ADDITIONAL && rec->d_type != QType::A && rec->d_type != QType::AAAA && rec->d_type != QType::RRSIG) { - LOG(prefix<<"Removing irrelevant record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the ADDITIONAL section received from "<d_place == DNSResourceRecord::ADDITIONAL && allowedAdditionals.count(rec->d_name) == 0) { - LOG(prefix<<"Removing irrelevant additional record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the ADDITIONAL section received from "<