chore: log when state sync fails

This commit is contained in:
Adhiraj Singh
2021-11-07 19:05:58 +05:30
parent e547d85f98
commit 60d3be460b

View File

@@ -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`))
}
})