Skip to content

Commit

Permalink
basichost: log more info when protocol selection fails (#2734)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored Mar 21, 2024
1 parent aa74bbb commit e416c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/host/basic/basic_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e416c52

Please sign in to comment.