diff --git a/src/contrib/cluster/Akka.DistributedData/Replicator.cs b/src/contrib/cluster/Akka.DistributedData/Replicator.cs index 2d7f8c1083f..fc109e1ad76 100644 --- a/src/contrib/cluster/Akka.DistributedData/Replicator.cs +++ b/src/contrib/cluster/Akka.DistributedData/Replicator.cs @@ -1177,7 +1177,7 @@ private void ReceiveStatus(IImmutableDictionary otherDigests if (keys.Length != 0) { - if (_log.IsDebugEnabled) + if (_log.IsDebugEnabled && _settings.VerboseDebugLogging) _log.Debug("Sending gossip to [{0}]: {1}", Sender.Path.Address, string.Join(", ", keys)); var g = new Gossip(keys.ToImmutableDictionary(x => x, _ => GetData(_)), !otherDifferentKeys.IsEmpty); @@ -1197,7 +1197,7 @@ private void ReceiveStatus(IImmutableDictionary otherDigests private void ReceiveGossip(IImmutableDictionary updatedData, bool sendBack) { - if (_log.IsDebugEnabled) + if (_log.IsDebugEnabled && _settings.VerboseDebugLogging) _log.Debug("Received gossip from [{0}], containing [{1}]", Sender.Path.Address, string.Join(", ", updatedData.Keys)); var replyData = ImmutableDictionary.Empty.ToBuilder();