diff --git a/syslog.js b/syslog.js index 05327fb04..68c1b961a 100755 --- a/syslog.js +++ b/syslog.js @@ -41,7 +41,7 @@ async function start() { // remove line breaks to avoid holes in the log file // we do not ignore empty log lines, to allow gaps for potential ease of readability - const message = info.message.replace(/\n/g, ''); + const message = info.message.replace(/[\n\r]+/g, ''); const appLogDir = path.join(paths.LOG_DIR, info.appName);