From: Jérôme Benoit Date: Wed, 2 Aug 2023 15:45:12 +0000 (+0200) Subject: refactor: improve log messages X-Git-Tag: v1.2.20~39 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=320d07e3ed4a20f5417cc33e611ea17c67f7fda3;p=e-mobility-charging-stations-simulator.git refactor: improve log messages Signed-off-by: Jérôme Benoit --- 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!)) {