* The update of the given service was successful.
* @param service The service.
*/
-void Logger::print_update_service_successful(const string& service) const
+void Logger::print_update_service_successful(const string& service, const std::string& ip_addr) const
{
int level = 0;
if ( level <= Loglevel )
{
ostringstream msg;
- msg << "Updated service successful: " << service << endl;
+ msg << "Updated service successful: " << service << " to IP: " << ip_addr << endl;
log_notice(msg.str());
}
}
void print_error_hostname_to_ip(const std::string& errMsg, const std::string& hostname) const;
- void print_update_service_successful(const std::string& service) const;
+ void print_update_service_successful(const std::string& service, const std::string& ip_addr) const;
void print_webcheck_no_ip();
// if update was successful, we need to set the Lastupdated and ActualIP base member.
set_last_update(current_time,ip);
ActualIP = ip;
- Log->print_update_service_successful(service_name);
+ Log->print_update_service_successful(service_name,ip);
ErrorCount = 0;
ErrorServiceBlockedUntil = 0;