From a847339d72b6bdb64b25bfc9cd68a6bdc92f842b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 16 Mar 2019 10:47:25 -0400 Subject: [PATCH] filter info logs on CLI --- src/bwdc.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bwdc.ts b/src/bwdc.ts index 53d19956..dda96f00 100644 --- a/src/bwdc.ts +++ b/src/bwdc.ts @@ -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);