Remove unneeded log items

These are already known at the time of logging due to the surrounding
logic.
This commit is contained in:
Andy Balaam 2026-03-30 16:34:42 +01:00
parent 00ff4b43c3
commit 3b12bfb839

View File

@ -223,18 +223,10 @@ export class DeviceListenerCurrentDevice {
} else {
await this.failedCheck("key_storage_out_of_sync", logSpan, "warn", "4S is missing secrets", {
secretStorageStatus,
allCrossSigningSecretsCached,
isCurrentDeviceTrusted,
keyBackupDownloadIsOk,
});
}
} else if (!keyBackupDownloadIsOk) {
await this.failedCheck("key_storage_out_of_sync", logSpan, "warn", "Backup key is not cached locally", {
secretStorageStatus,
allCrossSigningSecretsCached,
isCurrentDeviceTrusted,
keyBackupDownloadIsOk,
});
await this.failedCheck("key_storage_out_of_sync", logSpan, "warn", "Backup key is not cached locally");
} else {
// We should not get here
throw new Error("DeviceListenerCurrentDevice is in an unexpected state");