]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsreplay emitted output even with --quiet, fixed
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 22 Apr 2014 13:28:59 +0000 (15:28 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 22 Apr 2014 13:28:59 +0000 (15:28 +0200)
pdns/dnsreplay.cc

index 01391aa91ad07a0fe1b2219f66985334a0b181e0..c2fcf6a128a4e8059f8185248efeec6490593d84 100644 (file)
@@ -417,7 +417,8 @@ try
       qids_by_id_index_t& idindex=qids.get<AssignedIDTag>();
       qids_by_id_index_t::const_iterator found=idindex.find(ntohs(mdp.d_header.id));
       if(found == idindex.end()) {
-//        cout<<"Received an answer ("<<mdp.d_qname<<") from reference nameserver with id "<<mdp.d_header.id<<" which we can't match to a question!"<<endl;
+        if(!s_quiet)      
+          cout<<"Received an answer ("<<mdp.d_qname<<") from reference nameserver with id "<<mdp.d_header.id<<" which we can't match to a question!"<<endl;
         s_weunmatched++;
         continue;
       }