"prettier": "^2.6.2",
"release-it": "^15.0.0",
"robohydra": "^0.6.9",
- "rollup": "^2.75.4",
+ "rollup": "^2.75.5",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-delete": "^2.0.0",
}
},
"node_modules/rollup": {
- "version": "2.75.4",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.75.4.tgz",
- "integrity": "sha512-JgZiJMJkKImMZJ8ZY1zU80Z2bA/TvrL/7D9qcBCrfl2bP+HUaIw0QHUroB4E3gBpFl6CRFM1YxGbuYGtdAswbQ==",
+ "version": "2.75.5",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.75.5.tgz",
+ "integrity": "sha512-JzNlJZDison3o2mOxVmb44Oz7t74EfSd1SQrplQk0wSaXV7uLQXtVdHbxlcT3w+8tZ1TL4r/eLfc7nAbz38BBA==",
"dev": true,
"bin": {
"rollup": "dist/bin/rollup"
}
},
"rollup": {
- "version": "2.75.4",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.75.4.tgz",
- "integrity": "sha512-JgZiJMJkKImMZJ8ZY1zU80Z2bA/TvrL/7D9qcBCrfl2bP+HUaIw0QHUroB4E3gBpFl6CRFM1YxGbuYGtdAswbQ==",
+ "version": "2.75.5",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.75.5.tgz",
+ "integrity": "sha512-JzNlJZDison3o2mOxVmb44Oz7t74EfSd1SQrplQk0wSaXV7uLQXtVdHbxlcT3w+8tZ1TL4r/eLfc7nAbz38BBA==",
"dev": true,
"requires": {
"fsevents": "~2.3.2"
"prettier": "^2.6.2",
"release-it": "^15.0.0",
"robohydra": "^0.6.9",
- "rollup": "^2.75.4",
+ "rollup": "^2.75.5",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-delete": "^2.0.0",
}
private async internalStartConnector(connectorId: number): Promise<void> {
- this.initStartConnectorStatus(connectorId);
+ this.initializeConnectorStatus(connectorId);
logger.info(
this.logPrefix(connectorId) +
' started on connector and will run for ' +
});
}
- private initStartConnectorStatus(connectorId: number): void {
+ private initializeConnectorStatus(connectorId: number): void {
this.connectorsStatus.get(connectorId).authorizeRequests =
this?.connectorsStatus.get(connectorId)?.authorizeRequests ?? 0;
this.connectorsStatus.get(connectorId).acceptedAuthorizeRequests =
}
private logPrefix(connectorId?: number): string {
- if (connectorId) {
- return Utils.logPrefix(
- ' ' +
- this.chargingStation.stationInfo.chargingStationId +
- ' | ATG on connector #' +
- connectorId.toString() +
- ':'
- );
- }
- return Utils.logPrefix(' ' + this.chargingStation.stationInfo.chargingStationId + ' | ATG:');
+ return Utils.logPrefix(
+ ` ${this.chargingStation.stationInfo.chargingStationId} | ATG${
+ connectorId && ` on connector #${connectorId.toString()}`
+ }:`
+ );
}
}