Switch log messages to string literal
[e-mobility-charging-stations-simulator.git] / src / performance / PerformanceStatistics.ts
index f3c4e5e612a6707bf8288adfd071e291b1cd64b0..ef9d393ab41b051d18266bc16f5ddefe090e7a60 100644 (file)
@@ -162,16 +162,13 @@ export default class PerformanceStatistics {
         this.logStatistics();
       }, Configuration.getLogStatisticsInterval() * 1000);
       logger.info(
-        this.logPrefix() +
-          ' logged every ' +
-          Utils.formatDurationSeconds(Configuration.getLogStatisticsInterval())
+        `${this.logPrefix()} logged every ${Utils.formatDurationSeconds(
+          Configuration.getLogStatisticsInterval()
+        )}`
       );
     } else {
       logger.info(
-        this.logPrefix() +
-          ' log interval is set to ' +
-          Configuration.getLogStatisticsInterval().toString() +
-          '. Not logging statistics'
+        `${this.logPrefix()} log interval is set to ${Configuration.getLogStatisticsInterval().toString()}. Not logging statistics`
       );
     }
   }