]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
silence timeout error from webserver
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 16 Dec 2014 11:52:22 +0000 (12:52 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 16 Dec 2014 11:52:22 +0000 (12:52 +0100)
pdns/webserver.cc

index b958dea1c60ed20614bbca5853b41a104fc772cc..0de7a4e931ecef1594d38e53dea3d7d9c51fa4c8 100644 (file)
@@ -300,7 +300,8 @@ catch(PDNSException &e) {
   L<<Logger::Error<<"HTTP Exception: "<<e.reason<<endl;
 }
 catch(std::exception &e) {
-  L<<Logger::Error<<"HTTP STL Exception: "<<e.what()<<endl;
+  if(strstr(e.what(), "timeout")==0)
+    L<<Logger::Error<<"HTTP STL Exception: "<<e.what()<<endl;
 }
 catch(...) {
   L<<Logger::Error<<"HTTP: Unknown exception"<<endl;