]> granicus.if.org Git - pdns/commitdiff
webserver: print PDNSExceptions
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 4 Sep 2013 07:22:31 +0000 (09:22 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 4 Sep 2013 08:55:29 +0000 (10:55 +0200)
previously they'd get handled as (...)

pdns/webserver.cc

index 7ebce4d4afd956c20f82e0f372ba3a0adac983f0..79a6cd31472cdf1c990cd1a42016520222c1e3c0 100644 (file)
@@ -185,6 +185,9 @@ void *WebServer::serveConnection(void *p)
   catch(Exception &e) {
     L<<Logger::Error<<"Exception in webserver: "<<e.reason<<endl;
   }
+  catch(PDNSException &e) {
+    L<<Logger::Error<<"Exception in webserver: "<<e.reason<<endl;
+  }
   catch(std::exception &e) {
     L<<Logger::Error<<"STL Exception in webserver: "<<e.what()<<endl;
   }
@@ -236,6 +239,9 @@ void WebServer::go()
   catch(Exception &e) {
     L<<Logger::Error<<"Fatal error in main webserver thread: "<<e.reason<<endl;
   }
+  catch(PDNSException &e) {
+    L<<Logger::Error<<"Exception in main webserver thread: "<<e.reason<<endl;
+  }
   catch(std::exception &e) {
     L<<Logger::Error<<"STL Exception in main webserver thread: "<<e.what()<<endl;
   }