Changed log level for "Host not found" to warning (doesn't lead to program exit).
{
ostringstream msg;
msg << "Could not resolve the hostname: " << hostname << " to an IP-Address: " << exception << endl;
- log_error(msg.str(),level);
+ log_warning(msg.str(),level);
}
}
Log->print_cached_dns_entry(hostname, ip_dns_recheck, ip_last_update, ip_host);
+ // Test if the DNS-Record could not be found.
+ if ( ip_dns_recheck.empty() )
+ {
+ // Next in BOOST_FOREACH
+ }
// Test if the actual DNS-Record differs from the host's IP.
- if ( ip_host != ip_dns_recheck )
+ else if ( ip_host != ip_dns_recheck )
{
// Check if the service will be updated for the first time.
if ( lastupdated == 0 )