]> 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>
Fri, 19 Sep 2025 12:13:32 +0000 (14:13 +0200)
As suggested by Robert Edmonds (thanks!).

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-backend.cc

index 47593785d346db6a211aea0fcb2fffd9edd16988..fa44589457e144ca507874f637a87ec1823e9843 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();