log key backup upload requests

This commit is contained in:
Bruno Windels 2022-01-27 14:20:04 +01:00
parent bf08c0d850
commit 0b4954a9ca

View File

@ -93,7 +93,7 @@ export class KeyBackup {
const roomKeys = roomKeysOrNotFound.filter(k => !!k) as RoomKey[]; const roomKeys = roomKeysOrNotFound.filter(k => !!k) as RoomKey[];
if (roomKeys.length) { if (roomKeys.length) {
const payload = await this.encodeKeysForBackup(roomKeys); const payload = await this.encodeKeysForBackup(roomKeys);
const uploadRequest = this.hsApi.uploadRoomKeysToBackup(this.backupInfo.version, payload); const uploadRequest = this.hsApi.uploadRoomKeysToBackup(this.backupInfo.version, payload, {log});
setAbortable(uploadRequest); setAbortable(uploadRequest);
await uploadRequest.response(); await uploadRequest.response();
} }