From 98e14cf0f6829cbd7dc899c4772195335643d56a Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 31 Mar 2023 08:44:01 -0400 Subject: [PATCH] chore: add debug log to identify when peer is discovered --- waku/v2/protocol/peer_exchange/protocol.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/waku/v2/protocol/peer_exchange/protocol.go b/waku/v2/protocol/peer_exchange/protocol.go index c78f07a9..23a7ea40 100644 --- a/waku/v2/protocol/peer_exchange/protocol.go +++ b/waku/v2/protocol/peer_exchange/protocol.go @@ -243,6 +243,8 @@ func (wakuPX *WakuPeerExchange) iterate(ctx context.Context) error { continue } + wakuPX.log.Debug("Discovered px peers via discv5") + wakuPX.enrCacheMutex.Lock() wakuPX.enrCache[iterator.Node().ID()] = peerRecord{ idx: len(wakuPX.enrCache),