From ab0879958a628efa93bef19860c1038b4b7075b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Thu, 12 Mar 2020 12:44:06 +0100 Subject: [PATCH] don't log message content in P2PStream.readMsgBytes() because it adds too much noise to the trace logs --- beacon_chain/libp2p_backends_common.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/libp2p_backends_common.nim b/beacon_chain/libp2p_backends_common.nim index 552ef2263..7de5ab87a 100644 --- a/beacon_chain/libp2p_backends_common.nim +++ b/beacon_chain/libp2p_backends_common.nim @@ -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: