made counts in link status analyzer log messages clearer as promised quite a while ago
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 29 May 2015 09:00:17 +0000 (11:00 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 29 May 2015 09:00:17 +0000 (11:00 +0200)
src/link/linkstatus.cpp

index 51dcb1e..e20ba97 100644 (file)
@@ -88,11 +88,11 @@ void LinkStatus::notify_host_up( const string &host_address )
 
     if (has_changed)
         GlobalLogger.notice() << "Status (" << HostsDownList.size()
-            << "/" << HostsDownLimit << " down): now up again is "
+            << " down, limit=" << HostsDownLimit << "): now up again is "
             << DnsMaster::get_cname_chain_str(host_address) << endl;
     else   // less important so log only at info level
-        GlobalLogger.info()  << "Status (" << HostsDownList.size()
-            << "/" << HostsDownLimit << " down): still up is "
+        GlobalLogger.info() << "Status (" << HostsDownList.size()
+            << " down, limit=" << HostsDownLimit << "): still up is "
             << DnsMaster::get_cname_chain_str(host_address) << endl;
 
     if ( !exceeded_host_down_limit() )
@@ -119,8 +119,8 @@ void LinkStatus::notify_host_down( const string &host_address )
     add_host_down( host_address );
 
     // report this always at notice level
-    GlobalLogger.notice()  << "Status (" << HostsDownList.size()
-        << "/" << HostsDownLimit << " down): down is "
+    GlobalLogger.notice() << "Status (" << HostsDownList.size()
+        << " down, limit=" << HostsDownLimit << "): down is "
         << DnsMaster::get_cname_chain_str(host_address) << endl;
 
     if ( exceeded_host_down_limit() )