From 5acc5755465be7b84d407da165b6b43e3759cadf Mon Sep 17 00:00:00 2001 From: Roger Johansson Date: Thu, 21 Sep 2023 20:12:22 +0200 Subject: [PATCH] gossip error logger --- src/Proto.Cluster/Gossip/Gossiper.cs | 3 +++ 1 file changed, 3 insertions(+) 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; }