void addGood(const rfc1035_rr &rr, Specs &specs);
/// remembers the last error seen, overwriting any previous errors
- void latestError(const char *text, const int debugLevel = 3);
+ void latestError(const char *text);
protected:
void updateTtl(const unsigned int rrTtl);
}
void
-ipcache_entry::latestError(const char *text, const int debugLevel)
+ipcache_entry::latestError(const char *text)
{
- debugs(14, debugLevel, "ERROR: DNS failure while resolving " << name() << ": " << text);
+ debugs(14, 3, "ERROR: DNS failure while resolving " << name() << ": " << text);
safe_free(error_message);
error_message = xstrdup(text);
}
i->expires = squid_curtime + Config.negativeDnsTtl;
if (!i->error_message) {
- i->latestError("No valid address records", DBG_IMPORTANT);
+ i->latestError("No valid address records");
if (i->sawCname)
++IpcacheStats.cname_only;
}