From 0a3a7cb1a3b62a22a9b359783852fa77b1e7408e Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 18 Jun 2021 14:33:50 -0700 Subject: [PATCH] debug: replace newline in args --- src/shell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell.js b/src/shell.js index 2745dbf82..c0c9d0af2 100644 --- a/src/shell.js +++ b/src/shell.js @@ -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) {