mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 21:37:57 +08:00
p2p/proto/id: more helpful log
This commit is contained in:
parent
8e9413bd57
commit
773ee2e25d
@ -118,8 +118,8 @@ func (ids *IDService) ResponseHandler(s inet.Stream) {
|
||||
r := ggio.NewDelimitedReader(s, 2048)
|
||||
mes := pb.Identify{}
|
||||
if err := r.ReadMsg(&mes); err != nil {
|
||||
log.Errorf("%s error receiving message from %s %s", ID,
|
||||
c.RemotePeer(), c.RemoteMultiaddr())
|
||||
log.Errorf("%s error receiving message from %s %s %s", ID,
|
||||
c.RemotePeer(), c.RemoteMultiaddr(), err)
|
||||
return
|
||||
}
|
||||
ids.consumeMessage(&mes, c)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user