Browse Source
basichost: log more info when protocol selection fails (#2734)
pull/2746/head
zhiqiangxu
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
logf("protocol EOF: %s (took %s)", s.Conn().RemotePeer(), took) |
|
|
} else { |
|
|
} 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() |
|
|
s.Reset() |
|
|
return |
|
|
return |
|
|