changed how dns deals with cnames and recursion: remember cnames and implement recurs...
[pingcheck] / src / main.cpp
index 19f6f38..46d0f58 100644 (file)
@@ -457,7 +457,8 @@ int main( int argc, const char *argv[] )
     IoServiceItem io_service;
     int ret_code = 0;
     unsigned n_exceptions = 0;
-    unsigned max_exceptions = 0;
+    unsigned max_exceptions = 1;
+
     try
     {
         GetConfigReturnType success_and_config = get_configuration( argc, argv );
@@ -531,6 +532,11 @@ int main( int argc, const char *argv[] )
     if ( ret_code == 0 )
     {
         GlobalLogger.info() << "starting io_service main loop" << endl;
+
+        if (max_exceptions > 0)
+            GlobalLogger.warning() << "Limited number of acceptable exceptions,"
+                                   << " this is a debugging option!";
+
         // call boost::asio main event loop, catching exceptions
         while ( !signal_data.stopped )
         {