From: Pieter Lexis Date: Tue, 18 Jun 2019 12:49:51 +0000 (+0200) Subject: rec: Log only once for DNAME cache lookups X-Git-Tag: dnsdist-1.4.0-rc1~111^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adbd867b1d909093c308ec30174dbb082f7f7e9d;p=thirdparty%2Fpdns.git rec: Log only once for DNAME cache lookups --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 901c7bcd16..676dd0dcaa 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1083,13 +1083,13 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType &qtype, vector auto labels = qname.getRawLabels(); DNSName dnameName(g_rootdnsname); + LOG(prefix<get(d_now.tv_sec, dnameName, QType(QType::DNAME), !wasForwardRecurse && d_requireAuthData, &cset, d_cacheRemote, d_doDNSSEC ? &signatures : nullptr, d_doDNSSEC ? &authorityRecs : nullptr, &d_wasVariable, &state, &wasAuth) > 0) { foundName = dnameName; foundQT = QType(QType::DNAME);