]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Only log qname parsing errors when 'log-common-errors' is set 8864/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 26 Feb 2020 10:18:35 +0000 (11:18 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 26 Feb 2020 10:18:35 +0000 (11:18 +0100)
pdns/pdns_recursor.cc

index d3fc95fdf484985bea590f623772ec9e7ccd246f..06d3c509c09c9023aa151b8de3c447f6c1773d5a 100644 (file)
@@ -2436,7 +2436,8 @@ static string* doProcessUDPQuestion(const std::string& question, const ComboAddr
     }
   }
   catch(std::exception& e) {
-    g_log<<Logger::Error<<"Error processing or aging answer packet: "<<e.what()<<endl;
+    if(g_logCommonErrors)
+      g_log<<Logger::Error<<"Error processing or aging answer packet: "<<e.what()<<endl;
     return 0;
   }