From f020aa7a8ca6ad1c1d72ef109c5b5cdb53353fef Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 2 Jul 2021 10:54:56 +1000 Subject: [PATCH] Improve logging upon receiving messages --- examples/eth-dm/src/InitWaku.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/eth-dm/src/InitWaku.tsx b/examples/eth-dm/src/InitWaku.tsx index 3ef45e0c76..e01f12e85d 100644 --- a/examples/eth-dm/src/InitWaku.tsx +++ b/examples/eth-dm/src/InitWaku.tsx @@ -119,6 +119,7 @@ function handlePublicKeyMessage( setter: Dispatch>>, msg: WakuMessage ) { + console.log('Public Key Message received:', msg); if (!msg.payload) return; const publicKeyMsg = PublicKeyMessage.decode(msg.payload); if (!publicKeyMsg) return; @@ -140,7 +141,7 @@ async function handleDirectMessage( address: string, wakuMsg: WakuMessage ) { - console.log('Waku Message received:', wakuMsg); + console.log('Direct Message received:', wakuMsg); if (!wakuMsg.payload) return; const directMessage: DirectMessage = decode(wakuMsg.payload); if (directMessage.toAddress !== address) return;