Skip to content

Commit

Permalink
chore: add payload bytes to trace log (#1703)
Browse files Browse the repository at this point in the history
  • Loading branch information
alrevuelta committed Apr 25, 2023
1 parent dca0e9b commit c6d291d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion waku/v2/node/waku_node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ proc registerRelayDefaultHandler(node: WakuNode, topic: PubsubTopic) =
peerId=node.peerId,
pubsubTopic=topic,
hash=topic.digest(msg).to0xHex(),
receivedTime=getNowInNanosecondTime()
receivedTime=getNowInNanosecondTime(),
payloadSizeBytes=msg.payload.len

let msgSizeKB = msg.payload.len/1000

Expand Down

0 comments on commit c6d291d

Please sign in to comment.