From 00c5e747d2021b93be2322279f48a503f6740112 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 1 Feb 2022 12:30:45 +0100 Subject: [PATCH] log total backed up keys during flush operation --- src/matrix/e2ee/megolm/keybackup/KeyBackup.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/matrix/e2ee/megolm/keybackup/KeyBackup.ts b/src/matrix/e2ee/megolm/keybackup/KeyBackup.ts index 089d2b0a..43631552 100644 --- a/src/matrix/e2ee/megolm/keybackup/KeyBackup.ts +++ b/src/matrix/e2ee/megolm/keybackup/KeyBackup.ts @@ -127,6 +127,7 @@ export class KeyBackup { const keysNeedingBackup = (await txn.inboundGroupSessions.getFirstNonBackedUpSessions(KEYS_PER_REQUEST)) .map(entry => new StoredRoomKey(entry)); if (keysNeedingBackup.length === 0) { + log.set("total", total); return; } const payload = await this.encodeKeysForBackup(keysNeedingBackup);