chore(waku2): add extra logging

This commit is contained in:
Richard Ramos 2022-11-07 11:27:14 -04:00 committed by RichΛrd
parent ae7a16f27e
commit 76968df721
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import json
import json, chronicles
import base
@ -55,6 +55,7 @@ proc fromEvent*(T: type MessageSignal, event: JsonNode): MessageSignal =
for jsonMsg in event["event"]["messages"]:
var message = jsonMsg.toMessageDto()
signal.messages.add(message)
info "received", signal="messages.new", messageID=message.id
if event["event"]{"chats"} != nil:
for jsonChat in event["event"]["chats"]: