From 324fd4ee84aa8b7bff66c751f1f73c659e449682 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 6 Feb 2022 11:15:39 +0100 Subject: [PATCH] Fix build due to winston types definition fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/types/ConfigurationData.ts | 2 +- src/utils/Configuration.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 { -- 2.34.1