From: Jérôme Benoit Date: Fri, 27 Aug 2021 07:18:28 +0000 (+0200) Subject: Fix console log level in file exception handler X-Git-Tag: v1.0.48~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=531c5e7a452dd387d97b3290942fc485c329671d;p=e-mobility-charging-stations-simulator.git Fix console log level in file exception handler Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/FileUtils.ts b/src/utils/FileUtils.ts index 0120d7a1..c923982c 100644 --- a/src/utils/FileUtils.ts +++ b/src/utils/FileUtils.ts @@ -24,9 +24,9 @@ export default class FileUtils { } } else { if (consoleOut) { - console.error(chalk.yellow(prefix + fileType + ' file ' + filePath + ' error: '), error); + console.warn(chalk.yellow(prefix + fileType + ' file ' + filePath + ' error: '), error); } else { - logger.error(prefix + fileType + ' file ' + filePath + ' error: %j', error); + logger.warn(prefix + fileType + ' file ' + filePath + ' error: %j', error); } throw error; }