repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c21a1e8
)
Fix console log level in file exception handler
author
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 27 Aug 2021 07:18:28 +0000
(09:18 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 27 Aug 2021 07:18:28 +0000
(09:18 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/FileUtils.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/FileUtils.ts
b/src/utils/FileUtils.ts
index 0120d7a1aea9b856f5ab9281250f8c120a039eb1..c923982ce320e4e993f8902b0c8ebddd86d02e00 100644
(file)
--- 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;
}