From f6aa64122833d24ed52a882bf7376788f3917748 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 31 Aug 2021 18:07:25 +0200 Subject: [PATCH] Use morgan law properly to allow remote start transaction to work. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ocpp/1.6/OCPP16ResponseService.ts | 2 +- src/utils/Logger.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts index 985870d2..ecf12747 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts @@ -57,7 +57,7 @@ export default class OCPP16ResponseService extends OCPPResponseService { return; } if (this.chargingStation.getConnector(connectorId)?.status !== OCPP16ChargePointStatus.AVAILABLE - || this.chargingStation.getConnector(connectorId)?.status !== OCPP16ChargePointStatus.PREPARING) { + && this.chargingStation.getConnector(connectorId)?.status !== OCPP16ChargePointStatus.PREPARING) { logger.error(`${this.chargingStation.logPrefix()} Trying to start a transaction on connector ${connectorId.toString()} with status ${this.chargingStation.getConnector(connectorId)?.status}`); return; } diff --git a/src/utils/Logger.ts b/src/utils/Logger.ts index ccbc63ca..2f67f15d 100644 --- a/src/utils/Logger.ts +++ b/src/utils/Logger.ts @@ -20,7 +20,7 @@ if (Configuration.getLogRotate()) { } const logger: Logger = createLogger({ - level: Configuration.getLogLevel(), + level: Configuration.getLogLevel().toLowerCase(), format: format.combine(format.splat(), format[Configuration.getLogFormat()]()), transports: transports, }); -- 2.34.1