remove debug output or more precisely: changed its log level from notice to debug...
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 21 May 2015 08:00:37 +0000 (10:00 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 21 May 2015 08:00:37 +0000 (10:00 +0200)
CMakeLists.txt
src/host/hoststatus.cpp

index aa78886..8ff46fd 100644 (file)
@@ -1,7 +1,7 @@
 # project: definitions
 project(pingcheck)
 set(VERSION 0.5)
-set(VERSION_REVISION 0)
+set(VERSION_REVISION 1)
 set(TARGET ${PROJECT_NAME})
 
 # cmake: build options
index 530171f..6f7d590 100644 (file)
@@ -71,7 +71,7 @@ void HostStatus::set_resolved_ip_count( const int resolved_ip_count )
     }
     ResolvedIpCount = resolved_ip_count;
 
-    GlobalLogger.notice() << "Stat(" << HostAddress << "): "
+    GlobalLogger.debug() << "Stat(" << HostAddress << "): "
         << PingsFailedCount << " fail/" << PingsPerformedCount << " pings/"
         << ResolvedIpCount << " IPs: #IPs set";
 }
@@ -91,7 +91,7 @@ bool HostStatus::exceeded_ping_failed_limit() const
  */
 void HostStatus::update_ping_statistics( bool ping_success )
 {
-    GlobalLogger.notice() << "Stat(" << HostAddress << "): "
+    GlobalLogger.debug() << "Stat(" << HostAddress << "): "
         << PingsFailedCount << " fail/" << PingsPerformedCount << " pings/"
         << ResolvedIpCount << " IPs: add ping with success=" << ping_success;
 
@@ -136,14 +136,14 @@ void HostStatus::analyze_ping_statistics()
     // notify if the amount of pings that failed exceed the limit
     if ( exceeded_ping_failed_limit() )
     {
-        GlobalLogger.notice() << "Stat(" << HostAddress << "): "
+        GlobalLogger.debug() << "Stat(" << HostAddress << "): "
             << PingsFailedCount << " fail/" << PingsPerformedCount << " pings/"
             << ResolvedIpCount << " IPs: notify down";
         LinkAnalyzer->notify_host_down( HostAddress );
     }
     else
     {
-        GlobalLogger.notice() << "Stat(" << HostAddress << "): "
+        GlobalLogger.debug() << "Stat(" << HostAddress << "): "
             << PingsFailedCount << " fail/" << PingsPerformedCount << " pings/"
             << ResolvedIpCount << " IPs: notify up";
         LinkAnalyzer->notify_host_up( HostAddress );
@@ -182,7 +182,7 @@ void HostStatus::analyze_ping_failed_count()
     {
         ExceededPingFailedLimit = true;
 
-        GlobalLogger.notice() << "Stat(" << HostAddress << "): "
+        GlobalLogger.debug() << "Stat(" << HostAddress << "): "
             << PingsFailedCount << " fail/" << PingsPerformedCount << " pings/"
             << ResolvedIpCount << " IPs: exceed limit=" << ping_fail_limit_count;
     }
@@ -190,7 +190,7 @@ void HostStatus::analyze_ping_failed_count()
     {
         ExceededPingFailedLimit = false;
 
-        GlobalLogger.notice() << "Stat(" << HostAddress << "): "
+        GlobalLogger.debug() << "Stat(" << HostAddress << "): "
             << PingsFailedCount << " fail/" << PingsPerformedCount << " pings/"
             << ResolvedIpCount << " IPs: below limit=" << ping_fail_limit_count;
     }