Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BACKPORT #6089] Require verbose logging for more gossip send/receive log statements. #6091

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Require verbose logging for more gossip send/receive log statements. (#…
…6089)

(cherry picked from commit 3b4ed91)
object authored and Arkatufus committed Sep 7, 2022
commit 95a20adacd4df1bdb8c359866d66ce875e38ecdd
4 changes: 2 additions & 2 deletions src/contrib/cluster/Akka.DistributedData/Replicator.cs
Original file line number Diff line number Diff line change
@@ -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);
@@ -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();