1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-9978] Add State Logging Options (#10251)

* Add `DebugOptions` to Definitions

* Respect Debug Options

* Configure DI
This commit is contained in:
Justin Baur
2024-07-29 09:21:21 -04:00
committed by GitHub
parent beb5a65cda
commit c91f9146da
16 changed files with 272 additions and 13 deletions

View File

@@ -291,7 +291,10 @@ export class ServiceContainer {
this.memoryStorageForStateProviders,
);
this.globalStateProvider = new DefaultGlobalStateProvider(storageServiceProvider);
this.globalStateProvider = new DefaultGlobalStateProvider(
storageServiceProvider,
this.logService,
);
const stateEventRegistrarService = new StateEventRegistrarService(
this.globalStateProvider,
@@ -308,6 +311,7 @@ export class ServiceContainer {
this.singleUserStateProvider = new DefaultSingleUserStateProvider(
storageServiceProvider,
stateEventRegistrarService,
this.logService,
);
this.messagingService = MessageSender.EMPTY;