Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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;
}
}
const logger: Logger = createLogger({
- level: Configuration.getLogLevel(),
+ level: Configuration.getLogLevel().toLowerCase(),
format: format.combine(format.splat(), format[Configuration.getLogFormat()]()),
transports: transports,
});