void signal_handler(int param)
{
if (param == SIGUSR1)
- GlobalLogger.debug() << "signal handler called with SIGUSR1." << endl;
+ GlobalLogger.info() << "signal handler called with SIGUSR1." << endl;
else if (param == SIGUSR2)
- GlobalLogger.debug() << "signal handler called with SIGUSR2." << endl;
+ GlobalLogger.info() << "signal handler called with SIGUSR2." << endl;
else if (param == SIGTERM)
- GlobalLogger.debug() << "signal handler called with SIGTERM." << endl;
+ GlobalLogger.info() << "signal handler called with SIGTERM." << endl;
else if (param == SIGINT)
- GlobalLogger.debug() << "signal handler called with SIGINT." << endl;
+ GlobalLogger.info() << "signal handler called with SIGINT." << endl;
else
GlobalLogger.warning() << "signal handler called with unexpected signal " << param << endl;
signal_data.signaled_flag = param;
{
int new_log_level = I2n::Logger::get_log_level()+1;
I2n::Logger::set_log_level( new_log_level );
- GlobalLogger.debug() << "Increased log level to "
+ GlobalLogger.info() << "Increased log level to "
<< I2n::Logger::get_log_level_string();
}
else if ( signaled_flag == SIGUSR2 )
{
I2n::Logger::set_log_level( signal_data.config_log_level );
- GlobalLogger.debug() << "Reset log level to normal ("
+ GlobalLogger.info() << "Reset log level to normal ("
<< I2n::Logger::get_log_level_string() << ")";
}
else if ( ( signaled_flag == SIGTERM ) || ( signaled_flag == SIGINT ))
{
- GlobalLogger.debug() << "Received signal SIGINT/SIGTERM --> will stop" << endl;
+ GlobalLogger.notice() << "Received signal SIGINT/SIGTERM --> will stop" << endl;
want_stop = true;
}
else