Simplify WorkerUtils.defaultErrorHandler usage in WorkerSet
[e-mobility-charging-stations-simulator.git] / src / charging-station / AutomaticTransactionGenerator.ts
index 671b0d1b120533bbfb53460c00b867b12cd3d54c..3afb86d415c6a91fce7b19dd9979a37b80c1be2d 100644 (file)
@@ -79,7 +79,7 @@ export default class AutomaticTransactionGenerator {
 
   public startConnector(connectorId: number): void {
     if (this.connectorsStatus.has(connectorId) === false) {
-      logger.warn(`${this.logPrefix(connectorId)} starting on non existing connector`);
+      logger.error(`${this.logPrefix(connectorId)} starting on non existing connector`);
       throw new BaseError(`Connector ${connectorId} does not exist`);
     }
     if (this.connectorsStatus.get(connectorId)?.start === false) {
@@ -96,7 +96,7 @@ export default class AutomaticTransactionGenerator {
 
   public stopConnector(connectorId: number): void {
     if (this.connectorsStatus.has(connectorId) === false) {
-      logger.warn(`${this.logPrefix(connectorId)} stopping on non existing connector`);
+      logger.error(`${this.logPrefix(connectorId)} stopping on non existing connector`);
       throw new BaseError(`Connector ${connectorId} does not exist`);
     }
     if (this.connectorsStatus.get(connectorId)?.start === true) {