From 320d07e3ed4a20f5417cc33e611ea17c67f7fda3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 2 Aug 2023 17:45:12 +0200 Subject: [PATCH] refactor: improve log messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/Helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/Helpers.ts b/src/charging-station/Helpers.ts index f263daa4..2f775ccf 100644 --- a/src/charging-station/Helpers.ts +++ b/src/charging-station/Helpers.ts @@ -863,7 +863,7 @@ export const prepareChargingProfileKind = ( case ChargingProfileKindType.RELATIVE: if (!isNullOrUndefined(chargingProfile.chargingSchedule.startSchedule)) { logger.warn( - `${logPrefix} ${moduleName}.prepareChargingProfileKind: Charging profile id ${chargingProfile.chargingProfileId} has a startSchedule property defined. It will be ignored or used if the connector has a transaction started`, + `${logPrefix} ${moduleName}.prepareChargingProfileKind: Relative charging profile id ${chargingProfile.chargingProfileId} has a startSchedule property defined. It will be ignored or used if the connector has a transaction started`, ); delete chargingProfile.chargingSchedule.startSchedule; } @@ -982,7 +982,7 @@ const prepareRecurringChargingProfile = ( break; default: logger.error( - `${logPrefix} ${moduleName}.prepareRecurringChargingProfile: Recurring charging profile id ${chargingProfile.chargingProfileId} recurrency kind ${chargingProfile.recurrencyKind} is not supported`, + `${logPrefix} ${moduleName}.prepareRecurringChargingProfile: Recurring ${chargingProfile.recurrencyKind} charging profile id ${chargingProfile.chargingProfileId} is not supported`, ); } if (recurringIntervalTranslated && !isWithinInterval(currentDate, recurringInterval!)) { -- 2.34.1