From 07ceb30b037e4c3f01b1b2a86204b6326fede2e4 Mon Sep 17 00:00:00 2001 From: Otto Date: Fri, 9 Jul 2021 15:14:47 +0200 Subject: [PATCH] Zap a few redundant toString() method call for logging qtype names --- pdns/syncres.cc | 16 ++++++++-------- pdns/ueberbackend.cc | 4 ++-- pdns/validate.cc | 28 ++++++++++++++-------------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 4c34384137..d09505a60c 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -861,7 +861,7 @@ int SyncRes::doResolveNoQNameMinimization(const DNSName &qname, const QType qtyp prefix.append(depth, ' '); } - LOG(prefix< s_maxdepth) { string msg = "More than " + std::to_string(s_maxdepth) + " (max-recursion-depth) levels of recursion needed while resolving " + qname.toLogString(); @@ -874,7 +874,7 @@ int SyncRes::doResolveNoQNameMinimization(const DNSName &qname, const QType qtyp if(!(d_updatingRootNS && qtype.getCode()==QType::NS && qname.isRoot())) { if(d_cacheonly) { // very limited OOB support LWResult lwr; - LOG(prefix<end()) { @@ -1018,7 +1018,7 @@ int SyncRes::doResolveNoQNameMinimization(const DNSName &qname, const QType qtyp return 0; } - LOG(prefix<toStringWithPort() <<", asking '"<toStringWithPort() <<", asking '"< l(d_mut); @@ -748,7 +748,7 @@ UeberBackend::handle::~handle() bool UeberBackend::handle::get(DNSZoneRecord &r) { - DLOG(g_log << "Ueber get() was called for a "<get(r))) { // this backend out of answers if(ibackends.size()) { diff --git a/pdns/validate.cc b/pdns/validate.cc index 6190f81e48..6f04090291 100644 --- a/pdns/validate.cc +++ b/pdns/validate.cc @@ -247,7 +247,7 @@ bool isNSEC3AncestorDelegation(const DNSName& signer, const DNSName& owner, cons static bool provesNoDataWildCard(const DNSName& qname, const uint16_t qtype, const DNSName& closestEncloser, const cspmap_t& validrrsets) { const DNSName wildcard = g_wildcarddnsname + closestEncloser; - LOG("Trying to prove that there is no data in wildcard for "<d_next<<") "); if (nsecProvesENT(name, owner, nsec->d_next)) { - LOG("Denies existence of type "<isSet(qtype)<<", next: "<d_next<isSet(qtype)<<", next: "<d_next< "<d_nexthash)<d_nexthash)) { - LOG("Denies existence of name "<isOptOut()) { @@ -837,7 +837,7 @@ dState getDenial(const cspmap_t &validrrsets, const DNSName& qname, const uint16 /* RFC 7129 section-5.6 */ if (needWildcardProof && !provesNSEC3NoWildCard(closestEncloser, qtype, validrrsets, &wildcardExists, cache)) { if (!isOptOut) { - LOG("But the existence of a wildcard is not denied for "<