/**
* TTL expired
+ * @param override_log_level Override log level with zero if true
* @param hostname Hostname
* @param ip_dns_recheck Cached DNS entry
* @param ip_last_update IP set in last update
* @param dns_cache_ttl DNS cache ttl
* @param current_time Current time
*/
-void Logger::print_update_service_ttl_not_expired(const string& hostname, const string& ip_dns_recheck, const string& ip_last_update, const string& ip_host, const time_t lastupdated, const int dns_cache_ttl, const time_t current_time) const
+void Logger::print_update_service_ttl_not_expired(bool override_log_level, const string& hostname, const string& ip_dns_recheck, const string& ip_last_update, const string& ip_host, const time_t lastupdated, const int dns_cache_ttl, const time_t current_time) const
{
int level = 1;
+
+ if (override_log_level)
+ level = 0;
+
if ( level <= Loglevel )
{
ostringstream msg;
/**
* No update needed
+ * @param override_log_level Override log level with zero if true
* @param hostname Hostname
* @param ip_dns_recheck Cached DNS entry
* @param ip_last_update IP set in last update
* @param ip_host Hosts IP
* @param lastupdated Last updated
*/
-void Logger::print_no_update_needed(const string& hostname, const string& ip_dns_recheck, const string& ip_last_update, const string& ip_host, const time_t lastupdated) const
+void Logger::print_no_update_needed(bool override_log_level, const string& hostname, const string& ip_dns_recheck, const string& ip_last_update, const string& ip_host, const time_t lastupdated) const
{
int level = 1;
+
+ if (override_log_level)
+ level = 0;
+
if ( level <= Loglevel )
{
ostringstream msg;