// logger.debug(
// `${this.logPrefix()} ${moduleName}.messageHandler: Worker channel message received: ${JSON.stringify(
// msg,
- // null,
+ // undefined,
// 2,
// )}`,
// );
throw new BaseError(
`Unknown charging station worker event: '${
msg.event
- }' received with data: ${JSON.stringify(msg.data, null, 2)}`,
+ }' received with data: ${JSON.stringify(msg.data, undefined, 2)}`,
);
}
} catch (error) {
}
private gracefulShutdown = (): void => {
- console.info(`${chalk.green('Graceful shutdown')}`);
this.stop()
.then(() => {
+ console.info(`${chalk.green('Graceful shutdown')}`);
exit(exitCodes.succeeded);
})
.catch((error) => {