refactor: refine log level
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 24 Jul 2023 18:48:45 +0000 (20:48 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 24 Jul 2023 18:48:45 +0000 (20:48 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStationUtils.ts

index b33a51083562e41668f5e441118f3da86937ae04..81096ef1eb3d3eafd45fe526b320461f39c08fc1 100644 (file)
@@ -689,7 +689,7 @@ const getLimitFromChargingProfiles = (
     // Set helpers
     const chargingSchedule = chargingProfile.chargingSchedule;
     if (!chargingSchedule?.startSchedule) {
-      logger.warn(
+      logger.debug(
         `${logPrefix} ${moduleName}.getLimitFromChargingProfiles: startSchedule is not defined in charging profile id ${chargingProfile.chargingProfileId}. Trying to set it to the connector transaction start date`,
       );
       // OCPP specifies that if startSchedule is not defined, it should be relative to start of the connector transaction