refactor: ensure logPrefix helper is always used
[e-mobility-charging-stations-simulator.git] / src / charging-station / Helpers.ts
index 068bc6c970afeaa9e402cc4f69086ccafae59ded..90ecd0e8154814c6a2be8f70c6b508690f59c096 100644 (file)
@@ -714,7 +714,7 @@ const warnDeprecatedTemplateKey = (
       isNotEmptyString(logMsgToAppend) ? `. ${logMsgToAppend}` : ''
     }`;
     logger.warn(`${logPrefix} ${logMsg}`);
-    console.warn(chalk.yellow(`${logMsg}`));
+    console.warn(`${chalk.green(logPrefix)} ${chalk.yellow(logMsg)}`);
   }
 };