Enhance log message on supervision url distribution
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 4 Feb 2022 09:36:40 +0000 (10:36 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 4 Feb 2022 09:36:40 +0000 (10:36 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 4f6c7771283f865bb44d700541fb5fe42e0fbf36..565bdb895af476237584c66c86a6592d4c0e9772 100644 (file)
@@ -972,7 +972,7 @@ export default class ChargingStation {
           }
           break;
         default:
-          logger.error(`${this.logPrefix()} Unknown supervision url distribution '${Configuration.getSupervisionUrlDistribution()}', defaulting to ${SupervisionUrlDistribution.ROUND_ROBIN}`);
+          logger.error(`${this.logPrefix()} Unknown supervision url distribution '${Configuration.getSupervisionUrlDistribution()}' from values '${SupervisionUrlDistribution.toString()}', defaulting to ${SupervisionUrlDistribution.ROUND_ROBIN}`);
           urlIndex = (this.index - 1) % supervisionUrls.length;
           break;
       }