don't log message content in P2PStream.readMsgBytes()

because it adds too much noise to the trace logs
This commit is contained in:
Ștefan Talpalaru 2020-03-12 12:44:06 +01:00 committed by zah
parent b7414c5edf
commit ab0879958a
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ proc readMsgBytes(stream: P2PStream,
debug "Received SSZ with zero size", peer = stream.peer
return
trace "about to read msg bytes"
trace "about to read msg bytes", len = sizePrefix
var msgBytes = newSeq[byte](sizePrefix)
var readBody = stream.readExactly(addr msgBytes[0], sizePrefix)
await readBody or deadline
@ -142,7 +142,7 @@ proc readMsgBytes(stream: P2PStream,
trace "msg bytes not received in time"
return
trace "got message bytes", msgBytes
trace "got message bytes", len = sizePrefix
return msgBytes
except TransportIncompleteError: