From: Otto Moerbeek Date: Mon, 30 Jan 2023 11:37:25 +0000 (+0100) Subject: Tweaks in messages X-Git-Tag: dnsdist-1.8.0-rc1~38^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65a177b17f5451bb679fe8c721253604457d21c0;p=thirdparty%2Fpdns.git Tweaks in messages --- diff --git a/pdns/recursordist/aggressive_nsec.cc b/pdns/recursordist/aggressive_nsec.cc index 7f9ea40842..e5b454e2d2 100644 --- a/pdns/recursordist/aggressive_nsec.cc +++ b/pdns/recursordist/aggressive_nsec.cc @@ -790,7 +790,7 @@ bool AggressiveNSECCache::getDenial(time_t now, const DNSName& name, const QType // note that matchesNSEC() takes care of ruling out ancestor NSECs for us auto denial = matchesNSEC(name, type.getCode(), entry.d_owner, content, entry.d_signatures, log); if (denial == dState::NODENIAL || denial == dState::INCONCLUSIVE) { - VLOG_NO_PREFIX(log, " but it does no cover us" << endl); + VLOG_NO_PREFIX(log, " but it does not cover us" << endl); return false; } else if (denial == dState::NXQTYPE) { diff --git a/pdns/recursordist/syncres.cc b/pdns/recursordist/syncres.cc index 41442d59da..bed78220b0 100644 --- a/pdns/recursordist/syncres.cc +++ b/pdns/recursordist/syncres.cc @@ -1574,8 +1574,6 @@ LWResult::Result SyncRes::asyncresolveWrapper(const ComboAddress& ip, bool ednsM return ret; } -#define QLOG(x) LOG(prefix << " child=" << child << ": " << x << endl) - /* The parameters from rfc9156. */ /* maximum number of QNAME minimisation iterations */ static const unsigned int s_max_minimise_count = 10; @@ -1640,9 +1638,9 @@ int SyncRes::doResolve(const DNSName& qname, const QType qtype, vector retq; @@ -1653,7 +1651,7 @@ int SyncRes::doResolve(const DNSName& qname, const QType qtype, vectorend(); if (forwarded) { - QLOG("Step0 qname is in a forwarded domain " << fwdomain); + LOG(prefix << qname << ": Step0 qname is in a forwarded domain " << fwdomain << endl); } for (unsigned int i = 0; i <= qnamelen;) { @@ -1693,16 +1691,16 @@ int SyncRes::doResolve(const DNSName& qname, const QType qtype, vector records; std::set beenthere; - LOG(prefix << signer << ": Retrieving DNSKeys" << endl); + LOG(prefix << signer << ": Retrieving DNSKEYs" << endl); Context context; @@ -3927,7 +3925,6 @@ vState SyncRes::validateRecordsWithSigs(unsigned int depth, const string& prefix } bool servFailOccurred = false; if (state == vState::Secure) { - LOG(prefix << signer << ": Retrieving the DNSKEYs" << endl); state = getDNSKeys(signer, keys, servFailOccurred, depth, prefix); } diff --git a/pdns/validate.cc b/pdns/validate.cc index 02efdcc3b9..b37cebaec1 100644 --- a/pdns/validate.cc +++ b/pdns/validate.cc @@ -427,12 +427,12 @@ dState matchesNSEC(const DNSName& name, uint16_t qtype, const DNSName& nsecOwner /* check if the type is denied */ if (name == owner) { if (!isTypeDenied(nsec, QType(qtype))) { - VLOG_NO_PREFIX(log, "Does _not_ deny existence of type "<d_next<<")"); if (nsecProvesENT(name, owner, nsec->d_next)) { - VLOG_NO_PREFIX(log, " Denies existence of type "<