From: Jérôme Benoit Date: Fri, 1 Jan 2021 01:00:49 +0000 (+0100) Subject: Refine log messages. X-Git-Tag: v1.0.1-0~152^2~12 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2d23953a8a7fbdded24af0418f55ace6e1e86980;p=e-mobility-charging-stations-simulator.git Refine log messages. Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index abef0e29..96374d1d 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -619,7 +619,7 @@ export default class ChargingStation { this._openWSConnection({ handshakeTimeout: reconnectDelay - 100 }); this._hasSocketRestarted = true; } else if (this._getAutoReconnectMaxRetries() !== -1) { - logger.error(`${this._logPrefix()} Socket: max retries reached (${this._autoReconnectRetryCount}) or retry disabled (${this._getAutoReconnectMaxRetries()})`); + logger.error(`${this._logPrefix()} Socket reconnect failure: max retries reached (${this._autoReconnectRetryCount}) or retry disabled (${this._getAutoReconnectMaxRetries()})`); } } @@ -647,7 +647,7 @@ export default class ChargingStation { } } } else { - logger.error(`${this._logPrefix()} Registration: max retries reached (${this._getRegistrationMaxRetries()}) or retry disabled (${this._getRegistrationMaxRetries()})`); + logger.error(`${this._logPrefix()} Registration failure: max retries reached (${this._getRegistrationMaxRetries()}) or retry disabled (${this._getRegistrationMaxRetries()})`); } this._autoReconnectRetryCount = 0; this._hasSocketRestarted = false;