From 070722fcac6c84b713fccd83a22afc68fe5078da Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Mon, 8 Nov 2021 21:47:49 +0530 Subject: [PATCH] fix: log failed app syncs --- src/Socket/chats.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 6513390..a8324c2 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -445,6 +445,7 @@ export const makeChatsSocket = (config: SocketConfig) => { fetchBlocklist() fetchPrivacySettings() resyncAppState([ 'critical_block', 'critical_unblock_low' ]) + .catch(err => logger.info({ trace: err.stack }, 'failed to sync app state')) } })