1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-10 12:33:35 +00:00

Merge pull request #72 from bitwarden/add-logging-to-lowdb-storage-svc

Add logger to lowdb storage service
This commit is contained in:
Chad Scharf
2020-10-20 09:33:38 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

2
jslib

Submodule jslib updated: d84d6da7f7...929ee82770

View File

@@ -80,7 +80,7 @@ export class Main {
this.logService = new ConsoleLogService(this.platformUtilsService.isDev(),
(level) => process.env.BITWARDENCLI_CONNECTOR_DEBUG !== 'true' && level <= LogLevelType.Info);
this.cryptoFunctionService = new NodeCryptoFunctionService();
this.storageService = new LowdbStorageService(null, this.dataFilePath, true);
this.storageService = new LowdbStorageService(this.logService, null, this.dataFilePath, true);
this.secureStorageService = plaintextSecrets ?
this.storageService : new KeytarSecureStorageService(applicationName);
this.cryptoService = new CryptoService(this.storageService, this.secureStorageService,