Browse Source

basichost: log more info when protocol selection fails (#2734)

pull/2746/head
zhiqiangxu 8 months ago
committed by GitHub
parent
commit
e416c52172
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      p2p/host/basic/basic_host.go

2
p2p/host/basic/basic_host.go

@ -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

Loading…
Cancel
Save