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 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: