From 531c5e7a452dd387d97b3290942fc485c329671d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 27 Aug 2021 09:18:28 +0200 Subject: [PATCH] Fix console log level in file exception handler MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/FileUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1