From: Jérôme Benoit Date: Sun, 6 Feb 2022 10:15:39 +0000 (+0100) Subject: Fix build due to winston types definition fix X-Git-Tag: v1.1.45~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=324fd4ee84aa8b7bff66c751f1f73c659e449682;p=e-mobility-charging-stations-simulator.git Fix build due to winston types definition fix Signed-off-by: Jérôme Benoit --- diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 56ee0354..fdb83b57 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -41,7 +41,7 @@ export default interface ConfigurationData { chargingStationsPerWorker?: number; logStatisticsInterval?: number; logFormat?: string; - logLevel?: level; + logLevel?: string; logRotate?: boolean; logMaxFiles?: number; logFile?: string; diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index b1bc6e3a..ab0a1473 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -137,8 +137,8 @@ export default class Configuration { return Configuration.objectHasOwnProperty(Configuration.getConfig(), 'logMaxFiles') ? Configuration.getConfig().logMaxFiles : 7; } - static getLogLevel(): level { - return Configuration.objectHasOwnProperty(Configuration.getConfig(), 'logLevel') ? Configuration.getConfig().logLevel.toLowerCase() as level : 'info'; + static getLogLevel(): string { + return Configuration.objectHasOwnProperty(Configuration.getConfig(), 'logLevel') ? Configuration.getConfig().logLevel.toLowerCase() : 'info'; } static getLogFile(): string {