Skip to content

Commit 6ce2043

Browse files
authored
feat(swarm): logging waitForDirectConn return error (#3183)
1 parent 427ea4b commit 6ce2043

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

p2p/net/swarm/swarm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ func (s *Swarm) NewStream(ctx context.Context, p peer.ID) (network.Stream, error
510510
var err error
511511
c, err = s.waitForDirectConn(ctx, p)
512512
if err != nil {
513+
log.Debugf("failed to get direct connection to a limited peer %s: %s", p, err)
513514
return nil, err
514515
}
515516
}

0 commit comments

Comments
 (0)