]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Be a little less verbose telling we are looking up CNAMEs 10112/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 30 Nov 2020 16:40:31 +0000 (17:40 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 22 Feb 2021 11:00:04 +0000 (12:00 +0100)
or DNAMEs. Only log when we found something

pdns/syncres.cc

index 2a4345dc47e74257f3038db1bcde824a22bab8e1..1869c42d3e220751043dd22d6f5c40ccfa5db6cb 100644 (file)
@@ -1421,7 +1421,6 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType qtype, vector<
   DNSName authZone;
   QType foundQT = QType::ENT;
 
-  LOG(prefix<<qname<<": Looking for CNAME cache hit of '"<<qname<<"|CNAME"<<"'"<<endl);
   /* we don't require auth data for forward-recurse lookups */
   if (g_recCache->get(d_now.tv_sec, qname, QType::CNAME, !wasForwardRecurse && d_requireAuthData, &cset, d_cacheRemote, d_refresh, d_routingTag, d_doDNSSEC ? &signatures : nullptr, d_doDNSSEC ? &authorityRecs : nullptr, &d_wasVariable, &state, &wasAuth, &authZone) > 0) {
     foundName = qname;
@@ -1433,7 +1432,6 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType qtype, vector<
     auto labels = qname.getRawLabels();
     DNSName dnameName(g_rootdnsname);
 
-    LOG(prefix<<qname<<": Looking for DNAME cache hit of '"<<qname<<"|DNAME' or its ancestors"<<endl);
     do {
       dnameName.prependRawLabel(labels.back());
       labels.pop_back();
@@ -1449,7 +1447,6 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType qtype, vector<
   }
 
   if (foundName.empty()) {
-    LOG(prefix<<qname<<": No CNAME or DNAME cache hit of '"<< qname <<"' found"<<endl);
     return false;
   }