Added updated IP into update successful log message.
[bpdyndnsd] / src / logger.cpp
index 19ef01b..7e3beb8 100644 (file)
@@ -992,13 +992,13 @@ void Logger::print_error_hostname_to_ip(const string& errMsg, const string& host
  * 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());
     }
 }