]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Fri, 23 Feb 2024 16:40:13 +0000 (05:40 +1300)
src/ipcache.cc

index 0907364b8df47546bb31210bb4ea2e428994e239..e5aec7f20defcd3069bf56d0314c5663d0861a7f 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