From 60d3be460bf668bdfe0a8cad3393660d674ec593 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sun, 7 Nov 2021 19:05:58 +0530 Subject: [PATCH] chore: log when state sync fails --- src/Socket/chats.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index a6309e0..f27f450 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -412,6 +412,7 @@ export const makeChatsSocket = (config: SocketConfig) => { const update = getBinaryNodeChild(node, 'collection') if(update) { resyncState(update.attrs.name as WAPatchName, false) + .catch(err => logger.error({ trace: err.stack, node }, `failed to sync state`)) } })