]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix misleading Dns::CachedIps::restoreGoodness() debugging (#1692)
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 23 Feb 2024 08:01:52 +0000 (08:01 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 23 Feb 2024 08:02:03 +0000 (08:02 +0000)
src/ipcache.cc

index 0e5b5d520d347071643430b738628dc333a97e4f..05eba860c394c7bce51f95409141d8ba3c7341f5 100644 (file)
@@ -974,9 +974,10 @@ Dns::CachedIps::restoreGoodness(const char *name)
         for (auto &cachedIp: ips)
             cachedIp.forgetMarking();
         badCount_ = 0;
+        debugs(14, 3, "cleared all " << size() << " bad IPs for " << name);
+        // fall through to reset goodPosition and report the current state
     }
     Must(seekNewGood(name));
-    debugs(14, 3, "cleared all IPs for " << name << "; now back to " << *this);
 }
 
 bool