Commit bdda7ff6 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

p2p/proto/id: more helpful log

parent 07d52b33
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment