Skip to content

Commit

Permalink
gossip error logger
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing committed Sep 21, 2023
1 parent 0f07add commit 5acc575
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Proto.Cluster/Gossip/Gossiper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public class Gossiper
{
public const string GossipActorName = "$gossip";

#pragma warning disable CS0618 // Type or member is obsolete
private static readonly ILogger Logger = Log.CreateLogger<Gossiper>();
#pragma warning restore CS0618 // Type or member is obsolete
private readonly Cluster _cluster;
private readonly IRootContext _context;
private PID _pid = null!;
Expand Down Expand Up @@ -143,6 +145,7 @@ public void SetState(string key, IMessage value)

if (_pid == null)
{
Logger.LogError("Gossiper is not started, cannot set state");
return;
}

Expand Down

0 comments on commit 5acc575

Please sign in to comment.