Browse Source

p2p/proto/id: more helpful log

pull/2/head
Juan Batiz-Benet 10 years ago
parent
commit
bdda7ff6b6
  1. 4
      protocol/identify/id.go

4
protocol/identify/id.go

@ -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…
Cancel
Save