Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Oct 1, 2024
1 parent 2656819 commit a0b23fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions waku/node/peer_manager/peer_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ proc connectRelay*(
wireAddr = peer.addrs, peerId = peerId, failedAttempts = failedAttempts

var deadline = sleepAsync(dialTimeout)
info "calling connectRelay"
let workfut = pm.switch.connect(peerId, peer.addrs)

# Can't use catch: with .withTimeout() in this case
Expand Down Expand Up @@ -685,6 +686,7 @@ proc reconnectPeers*(
## Reconnect to peers registered for this protocol. This will update connectedness.
## Especially useful to resume connections from persistent storage after a restart.

info "calling reconnectPeers"
debug "Reconnecting peers", proto = proto

# Proto is not persisted, we need to iterate over all peers.
Expand Down
1 change: 1 addition & 0 deletions waku/node/waku_node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ proc connectToNodes*(
) {.async.} =
## `source` indicates source of node addrs (static config, api call, discovery, etc)
# NOTE Connects to the node without a give protocol, which automatically creates streams for relay
info "calling connectToNodes"
await peer_manager.connectToNodes(node.peerManager, nodes, source = source)

proc disconnectNode*(node: WakuNode, remotePeer: RemotePeerInfo) {.async.} =
Expand Down

0 comments on commit a0b23fb

Please sign in to comment.