// event processing loop, it is a blocking call!
IoService.run(); //lint !e534
- GlobalLogger.notice() << "Ping thread was stopped.";
+ GlobalLogger.info() << "Ping thread was stopped.";
}
{
PingIntervalInSec.speed_up();
- GlobalLogger.info() << "- Speeding up ping interval to: " << PingIntervalInSec << "s"
+ GlobalLogger.debug() << "- Speeding up ping interval to: " << PingIntervalInSec << "s"
<< endl;
}
else
{
PingIntervalInSec.back_to_original();
- GlobalLogger.info() << "- Stick to the original ping interval: " << PingIntervalInSec << "s"
+ GlobalLogger.debug() << "- Stick to the original ping interval: " << PingIntervalInSec << "s"
<< endl;
}
}
ptime now = microsec_clock::universal_time();
time_resolution_traits_adapted64_impl::int_type elapsed_time_in_sec =
(now - TimeSentLastPing).total_seconds();
- GlobalLogger.info() << "- Time elapsed since last ping: " << elapsed_time_in_sec << "s" << endl;
+ GlobalLogger.debug() << "- Time elapsed since last ping: " << elapsed_time_in_sec << "s" << endl;
TimeSentLastPing = microsec_clock::universal_time();
}
#include "icmp/icmppacketfactory.h"
-
#include <logfunc.hpp>
#include "boost_assert_handler.h"
if ( !icmp_packet->read( is ) )
{
- GlobalLogger.warning() << "ICMP packet creation failed" << endl;
+ GlobalLogger.info() << "ICMP packet creation failed" << endl;
icmp_packet.reset(); // --> (!icmp_packet) is true
// --> icmp_pinger will not try to continue working with this packet
block_all_signals();
init_logger();
- GlobalLogger.notice() << "started";
+ GlobalLogger.debug() << "logger initiated with default config";
PingSchedulerList scheduler_list;
int ret_code = 0;
GlobalLogger.info() << "Set LogLevel to " << I2n::Logger::get_log_level_string() << endl;
set_log_output( configuration );
+ GlobalLogger.notice() << "started";
bool daemon_mode = configuration->get_daemon();
if ( daemon_mode )