chore: add payload bytes to trace log (#1703)

This commit is contained in:
Alvaro Revuelta 2023-04-25 09:50:43 +02:00 committed by GitHub
parent dca0e9b2cc
commit c6d291d3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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