Skip to content

Commit

Permalink
Require verbose logging for more gossip send/receive log statements. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
object committed Sep 7, 2022
1 parent a55cb9e commit 3b4ed91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contrib/cluster/Akka.DistributedData/Replicator.cs
Expand Up @@ -1177,7 +1177,7 @@ private void ReceiveStatus(IImmutableDictionary<string, ByteString> 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);
Expand All @@ -1197,7 +1197,7 @@ private void ReceiveStatus(IImmutableDictionary<string, ByteString> otherDigests

private void ReceiveGossip(IImmutableDictionary<string, DataEnvelope> 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<string, DataEnvelope>.Empty.ToBuilder();
Expand Down

0 comments on commit 3b4ed91

Please sign in to comment.