lightpush enhance log when handling request (#3297)

This commit is contained in:
Ivan FB 2025-02-13 00:48:36 +01:00 committed by GitHub
parent b792bee695
commit 35ebfa8d66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,10 +46,12 @@ proc handleRequest*(
waku_lightpush_messages.inc(labelValues = ["PushRequest"]) waku_lightpush_messages.inc(labelValues = ["PushRequest"])
notice "handling lightpush request", notice "handling lightpush request",
my_peer_id = wl.peerManager.switch.peerInfo.peerId,
peer_id = peerId, peer_id = peerId,
requestId = requestId, requestId = requestId,
pubsubTopic = pubsubTopic, pubsubTopic = pubsubTopic,
msg_hash = pubsubTopic.computeMessageHash(message).to0xHex() msg_hash = pubsubTopic.computeMessageHash(message).to0xHex(),
receivedTime = getNowInNanosecondTime()
let handleRes = await wl.pushHandler(peerId, pubsubTopic, message) let handleRes = await wl.pushHandler(peerId, pubsubTopic, message)
isSuccess = handleRes.isOk() isSuccess = handleRes.isOk()