From: Jérôme Benoit Date: Mon, 23 Jan 2023 14:06:25 +0000 (+0100) Subject: Fix log message conversion to string literal X-Git-Tag: v1.1.92~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cca3d47443640043862c0106f69485b11a11f31b;p=e-mobility-charging-stations-simulator.git Fix log message conversion to string literal Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/FileUtils.ts b/src/utils/FileUtils.ts index 87a8733b..69b5240d 100644 --- a/src/utils/FileUtils.ts +++ b/src/utils/FileUtils.ts @@ -22,7 +22,7 @@ export default class FileUtils { listener: fs.WatchListener = (event, filename) => { if (filename && event === 'change') { try { - logger.debug(`${logPrefix} ${fileType} file ${file} + ' have changed, reload'`); + logger.debug(`${logPrefix} ${fileType} file ${file} have changed, reload`); refreshedVariable && (refreshedVariable = JSON.parse(fs.readFileSync(file, 'utf8')) as T); } catch (error) { FileUtils.handleFileException(logPrefix, fileType, file, error as NodeJS.ErrnoException, {