debug: replace newline in args

This commit is contained in:
Girish Ramakrishnan
2021-06-18 14:33:50 -07:00
parent e6e875814e
commit 0a3a7cb1a3

View File

@@ -51,7 +51,7 @@ function spawn(tag, file, args, options, callback) {
if (options.ipc) options.stdio = ['pipe', 'pipe', 'pipe', 'ipc'];
debug(tag + ' spawn: %s %s', file, args.join(' '));
debug(tag + ' spawn: %s %s', file, args.join(' ').replace(/\n/g, '\\n'));
const cp = child_process.spawn(file, args, options);
if (options.logStream) {