1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

filter info logs on CLI

This commit is contained in:
Kyle Spearrin
2019-03-16 10:47:25 -04:00
parent 46827cdaa0
commit a847339d72

View File

@@ -1,6 +1,8 @@
import * as fs from 'fs';
import * as path from 'path';
import { LogLevelType } from 'jslib/enums/logLevelType';
import { AuthService } from 'jslib/services/auth.service';
import { ConfigurationService } from './services/configuration.service';
@@ -70,7 +72,8 @@ export class Main {
this.i18nService = new I18nService('en', './locales');
this.platformUtilsService = new CliPlatformUtilsService('connector', packageJson);
this.logService = new ConsoleLogService(this.platformUtilsService.isDev());
this.logService = new ConsoleLogService(this.platformUtilsService.isDev(),
(level) => level > LogLevelType.Info);
this.cryptoFunctionService = new NodeCryptoFunctionService();
this.storageService = new LowdbStorageService(null, p, true);
this.secureStorageService = new KeytarSecureStorageService(applicationName);