Permalink
Browse files

log previously-seen name in trace

  • Loading branch information...
1 parent 182005e commit 437824da3d436058984d137c460307af0bdefb39 @Habbie Habbie committed May 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/syncres.cc
View
@@ -539,7 +539,7 @@ void SyncRes::getBestNSFromCache(const string &qname, set<DNSResourceRecord>&bes
GetBestNSAnswer answer;
answer.qname=qname; answer.bestns=bestns;
if(beenthere.count(answer)) {
- LOG(prefix<<qname<<": We have NS in cache for '"<<subdomain<<"' but part of LOOP! Trying less specific NS"<<endl);
+ LOG(prefix<<qname<<": We have NS in cache for '"<<subdomain<<"' but part of LOOP (already seen "<<answer.qname<<")! Trying less specific NS"<<endl);
if(doLog())
for( set<GetBestNSAnswer>::const_iterator j=beenthere.begin();j!=beenthere.end();++j) {
LOG(prefix<<qname<<": beenthere: "<<j->qname<<" ("<<(unsigned int)j->bestns.size()<<")"<<endl);

0 comments on commit 437824d

Please sign in to comment.