Enhanced update logic to respect not activated hostnames. If a hostname could not...
[bpdyndnsd] / src / logger.cpp
index dec7077..19ef01b 100644 (file)
@@ -815,8 +815,9 @@ void Logger::print_deserialized_objects_success() const
  * @param password Service's password.
  * @param actual_ip Service's actual_ip.
  * @param lastupdated Service's lastupdated.
+ * @param activated Service's activated.
  */
-void Logger::print_service_object(const string& message, const string& protocol, const string& hostname, const string& login, const string& password, const int update_interval, const int max_updates_within_interval, const int max_equal_updates_in_succession, const int dns_cache_ttl , const string& actual_ip, std::map<time_t,std::string> lastupdated) const
+void Logger::print_service_object(const string& message, const string& protocol, const string& hostname, const string& login, const string& password, const int update_interval, const int max_updates_within_interval, const int max_equal_updates_in_succession, const int dns_cache_ttl , const string& actual_ip, std::map<time_t,std::string> lastupdated, const bool activated) const
 {
     int level = 1;
     if ( level <= Loglevel )
@@ -836,6 +837,7 @@ void Logger::print_service_object(const string& message, const string& protocol,
         {
             msg << "\t" << "Lastupdated:      " << r_iter->first << " -> " << r_iter->second << endl;
         }
+        msg << "\t" << "Activated:        " << activated << endl;
         log_notice(msg.str());
     }
 }