Skip to content

Commit

Permalink
chore: log messageHash for lightpush request that helps in debugging (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyaprem committed Jan 24, 2024
1 parent efdc524 commit 4220411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion waku/waku_lightpush/protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ else:
import
std/options,
stew/results,
stew/byteutils,
chronicles,
chronos,
metrics,
Expand Down Expand Up @@ -57,7 +58,7 @@ proc handleRequest*(wl: WakuLightPush, peerId: PeerId, buffer: seq[byte]): Futur
pubSubTopic = request.get().pubSubTopic
message = request.get().message
waku_lightpush_messages.inc(labelValues = ["PushRequest"])
debug "push request", peerId=peerId, requestId=requestId, pubsubTopic=pubsubTopic
debug "push request", peerId=peerId, requestId=requestId, pubsubTopic=pubsubTopic, hash=pubsubTopic.computeMessageHash(message).to0xHex()

let handleRes = await wl.pushHandler(peerId, pubsubTopic, message)
isSuccess = handleRes.isOk()
Expand Down

0 comments on commit 4220411

Please sign in to comment.