docs: log new mutations in trace mode

This commit is contained in:
Adhiraj Singh
2021-11-25 13:34:21 +05:30
parent 25f76b2f66
commit 49f0f4080c

View File

@@ -225,6 +225,9 @@ export const makeChatsSocket = (config: SocketConfig) => {
await authState.keys.setAppStateSyncVersion(name, newState)
logger.info(`synced ${name} to v${newState.version}`)
if(newMutations.length) {
logger.trace({ newMutations, name }, 'recv new mutations')
}
processSyncActions(newMutations)
totalMutations.push(...newMutations)