From 3a1f0a8e0c0435ea323adcf22c1d79a859a24ff8 Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Tue, 1 Oct 2024 18:22:57 +0300 Subject: [PATCH] logs --- waku/node/peer_manager/peer_manager.nim | 1 + waku/node/waku_node.nim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/waku/node/peer_manager/peer_manager.nim b/waku/node/peer_manager/peer_manager.nim index afd217f4e9..a3043f0463 100644 --- a/waku/node/peer_manager/peer_manager.nim +++ b/waku/node/peer_manager/peer_manager.nim @@ -367,6 +367,7 @@ proc onConnEvent(pm: PeerManager, peerId: PeerID, event: ConnEvent) {.async.} = discard proc onPeerMetadata(pm: PeerManager, peerId: PeerId) {.async.} = + info "calling onPeerMetadata" let res = catch: await pm.switch.dial(peerId, WakuMetadataCodec) diff --git a/waku/node/waku_node.nim b/waku/node/waku_node.nim index 77f605c065..df350ee8fd 100644 --- a/waku/node/waku_node.nim +++ b/waku/node/waku_node.nim @@ -434,6 +434,7 @@ proc startRelay*(node: WakuNode) {.async.} = let backoffPeriod = node.wakuRelay.parameters.pruneBackoff + chronos.seconds(BackoffSlackTime) + info "calling reconnectPeers", backoffPeriod = backoffPeriod await node.peerManager.reconnectPeers(WakuRelayCodec, backoffPeriod) # Start the WakuRelay protocol @@ -1252,7 +1253,6 @@ proc keepaliveLoop(node: WakuNode, keepalive: chronos.Duration) {.async.} = for peer in peers: try: - info "calling keepAlive dial" let conn = await node.switch.dial(peer.peerId, peer.addrs, PingCodec) let pingDelay = await node.libp2pPing.ping(conn) await conn.close()