]> granicus.if.org Git - pdns/commitdiff
log that communicator thread deaths cause exits
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 26 Apr 2012 12:24:35 +0000 (12:24 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 26 Apr 2012 12:24:35 +0000 (12:24 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2582 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/communicator.cc

index 6ab8b0a080e470ef48c5d74024b1965aec8ceb91..a5209c5ee3756c8956b2ed04306c2179b9a991e0 100644 (file)
@@ -103,17 +103,17 @@ void CommunicatorClass::mainloop(void)
     }
   }
   catch(AhuException &ae) {
-    L<<Logger::Error<<"Communicator thread died because of error: "<<ae.reason<<endl;
+    L<<Logger::Error<<"Exiting because communicator thread died with error: "<<ae.reason<<endl;
     Utility::sleep(1);
     exit(0);
   }
   catch(std::exception &e) {
-    L<<Logger::Error<<"Communicator thread died because of STL error: "<<e.what()<<endl;
+    L<<Logger::Error<<"Exiting because communicator thread died with STL error: "<<e.what()<<endl;
     exit(0);
   }
   catch( ... )
   {
-    L << Logger::Error << "Communicator caught unknown exception." << endl;
+    L << Logger::Error << "Exiting because communicator caught unknown exception." << endl;
     exit( 0 );
   }
 }