Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 83ae2bd

Browse files
committed
Extend debug logging
1 parent e572ea3 commit 83ae2bd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/receive/node.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ func (n *Node) HandlePeer(pi peer.AddrInfo) {
109109
// TODO: Check if the multi addresses have changed
110110
_, loaded := n.discoveredPeers.LoadOrStore(pi.ID, pi)
111111
if loaded {
112+
log.Debugln("Skipping peer as we tried to connect previously:", pi.ID)
112113
return
113114
}
114115

116+
log.Debugln("Connecting to peer:", pi.ID)
115117
if err := n.Connect(n.ServiceContext(), pi); err != nil {
116-
// stale entry in DHT?
117-
// log.Debugln(err)
118+
log.Debugln("Error connecting to peer:", pi.ID, err)
118119
return
119120
}
120121

0 commit comments

Comments
 (0)