Refine some logs level.
[e-mobility-charging-stations-simulator.git] / src / utils / FileUtils.ts
index 8edbb4c5ec0b2f79ed3d0c4f7adf7005f742a08f..c0891e646a1da0242b31da66375a0251f733cb0f 100644 (file)
@@ -5,9 +5,9 @@ export default class FileUtils {
     const prefix = logPrefix.length !== 0 ? logPrefix + ' ' : '';
     if (error.code === 'ENOENT') {
       if (consoleOut) {
-        console.error(prefix + fileType + ' file ' + filePath + ' not found: ', error);
+        console.warn(prefix + fileType + ' file ' + filePath + ' not found: ', error);
       } else {
-        logger.error(prefix + fileType + ' file ' + filePath + ' not found: %j', error);
+        logger.warn(prefix + fileType + ' file ' + filePath + ' not found: %j', error);
       }
     } else {
       if (consoleOut) {