Empty string handling fixes
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStationUtils.ts
index 9b371d140732db0bbcb7cff08b864ea9f2a1cd8d..e73f4d50670628cd61dfc82a2604ef7f9ae2d9fe 100644 (file)
@@ -210,7 +210,7 @@ export class ChargingStationUtils {
     if (!Utils.isUndefined(template[key])) {
       logger.warn(
         `${logPrefix} Deprecated template key '${key}' usage in file '${templateFile}'${
-          logMsgToAppend && `. ${logMsgToAppend}`
+          !Utils.isEmptyString(logMsgToAppend) && `. ${logMsgToAppend}`
         }`
       );
     }