mirror of
https://github.com/libp2p/go-libp2p.git
synced 2026-04-23 00:27:05 +08:00
basichost: log more info when protocol selection fails (#2734)
This commit is contained in:
@@ -414,7 +414,7 @@ func (h *BasicHost) newStreamHandler(s network.Stream) {
|
||||
}
|
||||
logf("protocol EOF: %s (took %s)", s.Conn().RemotePeer(), took)
|
||||
} else {
|
||||
log.Debugf("protocol mux failed: %s (took %s)", err, took)
|
||||
log.Debugf("protocol mux failed: %s (took %s, id:%s, remote peer:%s, remote addr:%v)", err, took, s.ID(), s.Conn().RemotePeer(), s.Conn().RemoteMultiaddr())
|
||||
}
|
||||
s.Reset()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user