if ( error == boost::asio::error::operation_aborted ) // cancelled
{
- GlobalLogger.error() << "DnsCache: SaveTimer was cancelled "
- << "--> no save and no re-schedule of saving!";
+ GlobalLogger.info() << "DnsCache: SaveTimer was cancelled "
+ << "--> no save and no re-schedule of saving!";
return;
}
else if (error)
{
- GlobalLogger.error() << "DnsCache: Received error " << error
- << " in schedule_save "
- << "--> no save now but re-schedule saving";
+ GlobalLogger.info() << "DnsCache: Received error " << error
+ << " in schedule_save "
+ << "--> no save now but re-schedule saving";
}
else
save_to_cachefile();
if (!HasChanged)
GlobalLogger.info() << "DnsCache: skip saving because has not changed";
else if (CacheFile.empty())
- GlobalLogger.warning()
+ GlobalLogger.info()
<< "DnsCache: skip saving because file name empty!";
else if (CacheFile == DoNotUseCacheFile)
GlobalLogger.info() << "DnsCache: configured not to use cache file";
void DnsCache::load_from_cachefile()
{
if (CacheFile.empty())
- GlobalLogger.warning()
+ GlobalLogger.info()
<< "DnsCache: cannot load because cache file name is empty!";
else if (CacheFile == DoNotUseCacheFile)
GlobalLogger.info() << "DnsCache: configured not to use cache file";
{
if (hostname.empty())
{
- GlobalLogger.warning() << "DnsCache: empty host!";
+ GlobalLogger.info() << "DnsCache: empty host!";
return "";
}
std::string key = key_for_hostname(hostname);
if ( !get_cname(hostname).Host.empty() )
{ // ensure that there is never IP and CNAME for the same host
- GlobalLogger.warning() << "DnsCache: Saving IPs for " << key
+ GlobalLogger.info() << "DnsCache: Saving IPs for " << key
<< " removes CNAME to " << get_cname(hostname).Host << "!";
update(hostname, Cname()); // overwrite with "empty" cname
}
std::string key = key_for_hostname(hostname);
if ( !get_ips(hostname).empty() )
{ // ensure that there is never IP and CNAME for the same host
- GlobalLogger.warning() << "DnsCache: Saving CNAME for " << key
+ GlobalLogger.info() << "DnsCache: Saving CNAME for " << key
<< " removes " << get_ips(hostname).size() << " IPs for same host!";
update(hostname, HostAddressVec()); // overwrite with empty IP list
}
current_host = key_for_hostname(current_cname.Host);
if (++n_recursions >= max_recursion_count)
{
- GlobalLogger.warning() << "DnsCache: reached recursion limit of "
- << n_recursions << " in recursive IP retrieval!";
+ GlobalLogger.info() << "DnsCache: reached recursion limit of "
+ << n_recursions << " in recursive IP retrieval of "
+ << hostname << "!";
break;
}
else
{
if (++n_recursions >= max_recursion_count)
{
- GlobalLogger.warning() << "DnsCache: reached recursion limit of "
- << n_recursions << " in search of outdated CNAMEs!";
+ GlobalLogger.info() << "DnsCache: reached recursion limit of "
+ << n_recursions << " in search of outdated CNAMEs for "
+ << hostname << "!";
return first_outdated; // not really out of date but currently
} // our best guess