]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Add the current hash perturbation setting to verbose logging
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 19 Sep 2025 12:13:32 +0000 (14:13 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 20 Oct 2025 08:58:15 +0000 (10:58 +0200)
As suggested by Robert Edmonds (thanks!).

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit d7994e1c0458a88bce259c758d256cf6717cc79c)

pdns/dnsdistdist/dnsdist-backend.cc

index 6664084fd6145aeeb827486336ff29bca85b9a98..4b5f7176406b1a172f2f4a034c2649bb085163b0 100644 (file)
@@ -250,8 +250,8 @@ void DownstreamState::stop()
 
 void DownstreamState::hash()
 {
-  vinfolog("Computing hashes for id=%s and weight=%d", *d_config.id, d_config.d_weight);
   const auto hashPerturbation = dnsdist::configuration::getImmutableConfiguration().d_hashPerturbation;
+  vinfolog("Computing hashes for id=%s and weight=%d, hash_perturbation=%d", *d_config.id, d_config.d_weight, hashPerturbation);
   auto w = d_config.d_weight;
   auto idStr = boost::str(boost::format("%s") % *d_config.id);
   auto lockedHashes = hashes.write_lock();