diff --git a/src/Proto.Cluster/Gossip/Gossiper.cs b/src/Proto.Cluster/Gossip/Gossiper.cs index 096e53f5a6..44f34c6162 100644 --- a/src/Proto.Cluster/Gossip/Gossiper.cs +++ b/src/Proto.Cluster/Gossip/Gossiper.cs @@ -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(); +#pragma warning restore CS0618 // Type or member is obsolete private readonly Cluster _cluster; private readonly IRootContext _context; private PID _pid = null!; @@ -143,6 +145,7 @@ public void SetState(string key, IMessage value) if (_pid == null) { + Logger.LogError("Gossiper is not started, cannot set state"); return; }