syslog: also replace CR (\r)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user