1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-19469] Add logs for unlock time (#13972)

* Add logs for unlock time

* Undo local flag override

* Update message

* Update messages

* Fix build on chrome
This commit is contained in:
Bernd Schoolmann
2025-04-02 23:19:53 +02:00
committed by GitHub
parent 31e455ff35
commit 1450a033b3
9 changed files with 37 additions and 3 deletions

View File

@@ -607,9 +607,17 @@ export class LockComponent implements OnInit, OnDestroy {
}
// Vault can be de-synced since notifications get ignored while locked. Need to check whether sync is required using the sync service.
const startSync = new Date().getTime();
// TODO: This should probably not be blocking
await this.syncService.fullSync(false);
this.logService.info(`[LockComponent] Sync took ${new Date().getTime() - startSync}ms`);
const startRegeneration = new Date().getTime();
// TODO: This should probably not be blocking
await this.userAsymmetricKeysRegenerationService.regenerateIfNeeded(this.activeAccount.id);
this.logService.info(
`[LockComponent] Private key regeneration took ${new Date().getTime() - startRegeneration}ms`,
);
if (this.clientType === "browser") {
const previousUrl = this.lockComponentService.getPreviousUrl();