repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: improve recurring charging profile mishandling error log
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ChargingStationUtils.ts
diff --git
a/src/charging-station/ChargingStationUtils.ts
b/src/charging-station/ChargingStationUtils.ts
index e0a68e531a197930626af3fcc336ae57dc79f63f..aa590b7819b197cf59d4bf2150288eada03b4d2c 100644
(file)
--- a/
src/charging-station/ChargingStationUtils.ts
+++ b/
src/charging-station/ChargingStationUtils.ts
@@
-716,7
+716,9
@@
const getLimitFromChargingProfiles = (
isAfter(chargingSchedule.startSchedule, endOfDay(currentDate))
) {
logger.error(
isAfter(chargingSchedule.startSchedule, endOfDay(currentDate))
) {
logger.error(
- `${logPrefix} ${moduleName}.getLimitFromChargingProfiles: Recurring charging profile id ${
+ `${logPrefix} ${moduleName}.getLimitFromChargingProfiles: Recurring ${
+ chargingProfile.recurrencyKind
+ } charging profile id ${
chargingProfile.chargingProfileId
} startSchedule ${chargingSchedule.startSchedule.toISOString()} is not properly translated to the current day`,
);
chargingProfile.chargingProfileId
} startSchedule ${chargingSchedule.startSchedule.toISOString()} is not properly translated to the current day`,
);
@@
-734,7
+736,9
@@
const getLimitFromChargingProfiles = (
isAfter(chargingSchedule.startSchedule, endOfWeek(currentDate))
) {
logger.error(
isAfter(chargingSchedule.startSchedule, endOfWeek(currentDate))
) {
logger.error(
- `${logPrefix} ${moduleName}.getLimitFromChargingProfiles: Recurring charging profile id ${
+ `${logPrefix} ${moduleName}.getLimitFromChargingProfiles: Recurring ${
+ chargingProfile.recurrencyKind
+ } charging profile id ${
chargingProfile.chargingProfileId
} startSchedule ${chargingSchedule.startSchedule.toISOString()} is not properly translated to the current week`,
);
chargingProfile.chargingProfileId
} startSchedule ${chargingSchedule.startSchedule.toISOString()} is not properly translated to the current week`,
);