syslog: also replace CR (\r)

This commit is contained in:
Girish Ramakrishnan
2024-05-21 16:48:29 +02:00
parent 0c80b7af1d
commit cb8731b915

View File

@@ -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);