don't log message content in P2PStream.readMsgBytes()
because it adds too much noise to the trace logs
This commit is contained in:
parent
b7414c5edf
commit
ab0879958a
|
@ -134,7 +134,7 @@ proc readMsgBytes(stream: P2PStream,
|
||||||
debug "Received SSZ with zero size", peer = stream.peer
|
debug "Received SSZ with zero size", peer = stream.peer
|
||||||
return
|
return
|
||||||
|
|
||||||
trace "about to read msg bytes"
|
trace "about to read msg bytes", len = sizePrefix
|
||||||
var msgBytes = newSeq[byte](sizePrefix)
|
var msgBytes = newSeq[byte](sizePrefix)
|
||||||
var readBody = stream.readExactly(addr msgBytes[0], sizePrefix)
|
var readBody = stream.readExactly(addr msgBytes[0], sizePrefix)
|
||||||
await readBody or deadline
|
await readBody or deadline
|
||||||
|
@ -142,7 +142,7 @@ proc readMsgBytes(stream: P2PStream,
|
||||||
trace "msg bytes not received in time"
|
trace "msg bytes not received in time"
|
||||||
return
|
return
|
||||||
|
|
||||||
trace "got message bytes", msgBytes
|
trace "got message bytes", len = sizePrefix
|
||||||
return msgBytes
|
return msgBytes
|
||||||
|
|
||||||
except TransportIncompleteError:
|
except TransportIncompleteError:
|
||||||
|
|
Loading…
Reference in New Issue