changed forgotten link status messages to format used for other messages when reporti...
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 5 Jun 2015 16:29:45 +0000 (18:29 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 5 Jun 2015 16:29:45 +0000 (18:29 +0200)
src/link/linkstatus.cpp

index e20ba97..0a44101 100644 (file)
@@ -176,8 +176,8 @@ void LinkStatus::notify_link_up()
                 "up"
         );                                                                          //lint !e534
 
-        GlobalLogger.notice()  << "Status (" << HostsDownList.size()
-            << "/" << HostsDownLimit << " down): report link up" << endl;
+        GlobalLogger.notice() << "Status (" << HostsDownList.size()
+            << " down, limit=" << HostsDownLimit << "): report link up" << endl;
         bool executed = StatusNotifierCmd->execute();
 
         if ( executed )
@@ -198,8 +198,9 @@ void LinkStatus::notify_link_down()
         BOOST_ASSERT( CurrentLinkStatus == Status_Down );
         BOOST_ASSERT( CurrentNotificationStatus == NotificationStatus_NotReported );
 
-        GlobalLogger.notice()  << "Status (" << HostsDownList.size()
-            << "/" << HostsDownLimit << " down): report link down" << endl;
+        GlobalLogger.notice() << "Status (" << HostsDownList.size()
+            << " down, limit=" << HostsDownLimit << "): report link down"
+            << endl;
         StatusNotifierCmd->set_token_value(
                 StatusNotifierCommand::StatusToken,
                 "down"