From cb8731b915ee13afcbbb51d772cd2da53e59ce3b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 21 May 2024 16:48:29 +0200 Subject: [PATCH] syslog: also replace CR (\r) --- syslog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);