X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils%2FConfiguration.ts;h=b1926e16dad7425d3cd7ea8a257163c41a4a7e14;hb=27e40a3b65c82807a3bf15a0e56b6f24fceb89f8;hp=5df7bdc5521debb1091388c38620497fa1eee96b;hpb=c78355e4f754d07a9d150b10b11ad925946b5c5a;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 5df7bdc5..b1926e16 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -336,13 +336,13 @@ export default class Configuration { ) { console.error( chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage in section '${sectionName}'${ - logMsgToAppend && `. ${logMsgToAppend}` + logMsgToAppend.trim().length !== 0 && `. ${logMsgToAppend}` }}` ); } else if (!Configuration.isUndefined(Configuration.getConfig()[key])) { console.error( chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage${ - logMsgToAppend && `. ${logMsgToAppend}` + logMsgToAppend.trim().length !== 0 && `. ${logMsgToAppend}` }}` ); }