From: Kees Monshouwer Date: Mon, 9 Nov 2020 11:59:00 +0000 (+0100) Subject: auth: make secondary logging less verbose X-Git-Tag: dnsdist-1.6.0-alpha0~4^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e66efe92fdc0525846f6e0ca94a17042c4391c42;p=thirdparty%2Fpdns.git auth: make secondary logging less verbose --- diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index e4f77a0a95..2f27a7b9bf 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -95,9 +95,9 @@ void CommunicatorClass::ixfrSuck(const DNSName &domain, const TSIGTriplet& tt, c // this checks three error conditions, and sets wrongDomainKind if we hit the third & had an error if(!B.getDomainInfo(domain, di) || !di.backend || (wrongDomainKind = true, di.kind != DomainInfo::Slave)) { // di.backend and B are mostly identical if(wrongDomainKind) - g_log< doAxfr(const ComboAddress& raddr, const DNSName bool soa_received {false}; while(retriever.getChunk(recs, nullptr, axfr_timeout)) { if(first) { - g_log< doAxfr(const ComboAddress& raddr, const DNSName continue; if(!i->qname.isPartOf(domain)) { - g_log<qname<<"'|"<qtype.getName()<<" during AXFR of zone '"<qname<<"'|"<qtype.getName()<<" during AXFR of zone '"< axfr; - g_log<startTransaction(domain, zs.domain_id); - g_log< maxent) { - g_log<setFresh(zs.domain_id); purgeAuthCaches(domain.toString()+"$"); - g_log<abortTransaction(); } } catch(const MOADNSException &mde) { g_log<abortTransaction(); } } catch(std::exception &re) { g_log<abortTransaction(); } } @@ -645,17 +645,17 @@ void CommunicatorClass::suck(const DNSName &domain, const ComboAddress& remote, newCount = d_failedSlaveRefresh[domain].first + 1; time_t nextCheck = now + std::min(newCount * d_tickinterval, (uint64_t)::arg().asNum("default-ttl")); d_failedSlaveRefresh[domain] = {newCount, nextCheck}; - g_log<abortTransaction(); } } catch(PDNSException &ae) { g_log<abortTransaction(); } } @@ -834,7 +834,7 @@ void CommunicatorClass::slaveRefresh(PacketHandler *P) if(dk.getTSIGForAccess(di.zone, sr.master, &dni.tsigkeyname)) { string secret64; if(!B->getTSIGKey(dni.tsigkeyname, &dni.tsigalgname, &secret64)) { - g_log< l(d_lock); - g_log< l(d_lock); - g_log<1 ? "s" : "")<<" need"<< + g_log<1 ? "s" : "")<<" need"<< (sdomains.size()>1 ? "" : "s")<< " checking, "<getDomainInfo(di.zone, tempdi, false)) { - g_log< their serial "<< theirserial << endl; + g_log< their serial "<< theirserial << endl; di.backend->setFresh(di.id); } else if(hasSOA && theirserial == ourserial) { @@ -989,24 +994,24 @@ void CommunicatorClass::slaveRefresh(PacketHandler *P) di.backend->setFresh(di.id); } else if(maxInception && ! ssr.d_freshness[di.id].theirInception ) { - g_log<