chore(waku2): add extra logging
This commit is contained in:
parent
ae7a16f27e
commit
76968df721
|
@ -1,4 +1,4 @@
|
||||||
import json
|
import json, chronicles
|
||||||
|
|
||||||
import base
|
import base
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@ proc fromEvent*(T: type MessageSignal, event: JsonNode): MessageSignal =
|
||||||
for jsonMsg in event["event"]["messages"]:
|
for jsonMsg in event["event"]["messages"]:
|
||||||
var message = jsonMsg.toMessageDto()
|
var message = jsonMsg.toMessageDto()
|
||||||
signal.messages.add(message)
|
signal.messages.add(message)
|
||||||
|
info "received", signal="messages.new", messageID=message.id
|
||||||
|
|
||||||
if event["event"]{"chats"} != nil:
|
if event["event"]{"chats"} != nil:
|
||||||
for jsonChat in event["event"]["chats"]:
|
for jsonChat in event["event"]["chats"]:
|
||||||
|
|
Loading…
Reference in New Issue