From: Remi Gacogne Date: Fri, 19 Sep 2025 12:13:32 +0000 (+0200) Subject: dnsdist: Add the current hash perturbation setting to verbose logging X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7994e1c0458a88bce259c758d256cf6717cc79c;p=thirdparty%2Fpdns.git dnsdist: Add the current hash perturbation setting to verbose logging As suggested by Robert Edmonds (thanks!). Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/dnsdist-backend.cc b/pdns/dnsdistdist/dnsdist-backend.cc index 47593785d..fa4458945 100644 --- a/pdns/dnsdistdist/dnsdist-backend.cc +++ b/pdns/dnsdistdist/dnsdist-backend.cc @@ -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();