Use morgan law properly to allow remote start transaction to work.
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 Aug 2021 16:07:25 +0000 (18:07 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 Aug 2021 16:07:25 +0000 (18:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
src/utils/Logger.ts

index 985870d210d1a0974fb63bd2dea64f559aced44d..ecf127478c10d93aac23ec0f77fa2acc9bdc9cae 100644 (file)
@@ -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;
     }
index ccbc63cade75a2753793c4669b4fbcfb49dafafc..2f67f15d750a78ab1bbcb644eca973abf699044f 100644 (file)
@@ -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,
 });