From: Jérôme Benoit Date: Tue, 31 Aug 2021 16:07:25 +0000 (+0200) Subject: Use morgan law properly to allow remote start transaction to work. X-Git-Tag: v1.0.53~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f6aa64122833d24ed52a882bf7376788f3917748;p=e-mobility-charging-stations-simulator.git Use morgan law properly to allow remote start transaction to work. Signed-off-by: Jérôme Benoit --- 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, });