From 657933ec3dccd1fb606a143c0db5061bbad445d9 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 18 Jan 2023 10:43:23 +0100 Subject: [PATCH] some logs --- wakuv2/waku.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wakuv2/waku.go b/wakuv2/waku.go index 13a464e26..cf8d9aa44 100644 --- a/wakuv2/waku.go +++ b/wakuv2/waku.go @@ -351,9 +351,11 @@ func New(nodeKey string, fleet string, cfg *Config, logger *zap.Logger, appDB *s // Restarting DiscV5 if !latestConnStatus.IsOnline && isConnected { + waku.logger.Debug("Restarting DiscV5: offline and is connected") isConnected = false waku.node.DiscV5().Stop() } else if latestConnStatus.IsOnline && !isConnected { + waku.logger.Debug("Restarting DiscV5: online and is not connected") isConnected = true if !waku.node.DiscV5().IsStarted() { err := waku.node.DiscV5().Start(ctx)