Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Use morgan law properly to allow remote start transaction to work.
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
  • Loading branch information
Jérôme Benoit committed Aug 31, 2021
1 parent bc4cbd0 commit f6aa641
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit f6aa641

Please sign in to comment.