From: Jérôme Benoit Date: Sun, 2 Jun 2024 19:57:56 +0000 (+0200) Subject: refactor: cleanup string literal variables handling X-Git-Tag: v1.3.4~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4c6f35659fb67d395adc035ef80c566eb6eef79e;hp=fc105961dd56e041fc6de1df3fd51c74723ba419;p=e-mobility-charging-stations-simulator.git refactor: cleanup string literal variables handling Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 27a56f34..def985c0 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -2449,7 +2449,7 @@ export class ChargingStation extends EventEmitter { ) } else if (this.stationInfo?.autoReconnectMaxRetries !== -1) { logger.error( - `${this.logPrefix()} WebSocket connection retries failure: maximum retries reached (${this.wsConnectionRetryCount.toString()}) or retries disabled (${this.stationInfo?.autoReconnectMaxRetries})` + `${this.logPrefix()} WebSocket connection retries failure: maximum retries reached (${this.wsConnectionRetryCount.toString()}) or retries disabled (${this.stationInfo?.autoReconnectMaxRetries?.toString()})` ) } }