1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-21 11:53:38 +00:00

BWCLI_DEBUG for logging

This commit is contained in:
Kyle Spearrin
2019-03-18 10:40:47 -04:00
parent 3d8933e5f0
commit 93cedec32c

View File

@@ -73,7 +73,7 @@ export class Main {
this.i18nService = new I18nService('en', './locales');
this.platformUtilsService = new CliPlatformUtilsService('connector', packageJson);
this.logService = new ConsoleLogService(this.platformUtilsService.isDev(),
(level) => level > LogLevelType.Info);
(level) => process.env.BWCLI_DEBUG !== 'true' && level <= LogLevelType.Info);
this.cryptoFunctionService = new NodeCryptoFunctionService();
this.storageService = new LowdbStorageService(null, p, true);
this.secureStorageService = new KeytarSecureStorageService(applicationName);