X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=e29c6445fefcccb383b4387f93d670a948c57326;hb=45c0ae82dee8cf065f6303c4853c8adfe239dee1;hp=17fe96095a6c197f90d3edf38b2033212424c723;hpb=a307349b9b58052f14cc28b50b97c1113f744782;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 17fe9609..e29c6445 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -228,11 +228,25 @@ export class Bootstrap { private workerEventStarted = (data: ChargingStationData) => { this.uiServer?.chargingStations.set(data.stationInfo.hashId, data); ++this.numberOfStartedChargingStations; + logger.info( + `${this.logPrefix()} ${moduleName}.workerEventStarted: Charging station '${ + data.stationInfo.chargingStationId + } (hashId: ${data.stationInfo.hashId})' started (${ + this.numberOfStartedChargingStations + } started from ${this.numberOfChargingStations})` + ); }; private workerEventStopped = (data: ChargingStationData) => { this.uiServer?.chargingStations.set(data.stationInfo.hashId, data); --this.numberOfStartedChargingStations; + logger.info( + `${this.logPrefix()} ${moduleName}.workerEventStopped: Charging station '${ + data.stationInfo.chargingStationId + } (hashId: ${data.stationInfo.hashId})' stopped (${ + this.numberOfStartedChargingStations + } started from ${this.numberOfChargingStations})` + ); }; private workerEventUpdated = (data: ChargingStationData) => {