repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: only process worker message events when necessary
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
Bootstrap.ts
diff --git
a/src/charging-station/Bootstrap.ts
b/src/charging-station/Bootstrap.ts
index 5b2ace54b934d1ad6eee03da8d4a6b94fe100cb5..bb801e74eb1ffd566c7d30af07fa5d65af166d19 100644
(file)
--- a/
src/charging-station/Bootstrap.ts
+++ b/
src/charging-station/Bootstrap.ts
@@
-370,7
+370,7
@@
export class Bootstrap extends EventEmitter {
msg: ChargingStationWorkerMessage<ChargingStationWorkerMessageData>
): void {
// logger.debug(
msg: ChargingStationWorkerMessage<ChargingStationWorkerMessageData>
): void {
// logger.debug(
- // `${this.logPrefix()} ${moduleName}.messageHandler:
Worker channel
message received: ${JSON.stringify(
+ // `${this.logPrefix()} ${moduleName}.messageHandler:
Charging station worker
message received: ${JSON.stringify(
// msg,
// undefined,
// 2
// msg,
// undefined,
// 2
@@
-404,12
+404,12
@@
export class Bootstrap extends EventEmitter {
break
default:
throw new BaseError(
break
default:
throw new BaseError(
- `Unknown charging station worker event: '${event}' received with data: ${JSON.stringify(data, undefined, 2)}`
+ `Unknown charging station worker
message
event: '${event}' received with data: ${JSON.stringify(data, undefined, 2)}`
)
}
} catch (error) {
logger.error(
)
}
} catch (error) {
logger.error(
- `${this.logPrefix()} ${moduleName}.messageHandler: Error occurred while handling
'${event}' event
:`,
+ `${this.logPrefix()} ${moduleName}.messageHandler: Error occurred while handling
charging station worker message event '${event}'
:`,
error
)
}
error
)
}