From: Christian Herdtweck Date: Fri, 29 May 2015 09:00:17 +0000 (+0200) Subject: made counts in link status analyzer log messages clearer as promised quite a while ago X-Git-Url: http://developer.intra2net.com/git/?p=pingcheck;a=commitdiff_plain;h=51440779a019b2f7b8936face6856d3263744d79 made counts in link status analyzer log messages clearer as promised quite a while ago --- diff --git a/src/link/linkstatus.cpp b/src/link/linkstatus.cpp index 51dcb1e..e20ba97 100644 --- a/src/link/linkstatus.cpp +++ b/src/link/linkstatus.cpp @@ -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() )