Revert "Add option to not log shell subprocess stdout+stderr"

This reverts commit 51bb2d2bc2.
This commit is contained in:
Girish Ramakrishnan
2024-07-25 11:53:56 +02:00
parent 21de2513e7
commit b6fbc46b58
2 changed files with 3 additions and 3 deletions

View File

@@ -111,10 +111,10 @@ function sudo(tag, args, options, callback) {
cp.stdout.on('data', (data) => {
if (options.captureStdout) stdoutResult += data.toString('utf8');
if (!options.dropStdout) process.stdout.write(data); // do not use debug to avoid double timestamps when calling backupupload.js
process.stdout.write(data); // do not use debug to avoid double timestamps when calling backupupload.js
});
cp.stderr.on('data', (data) => {
if (!options.dropStderr) process.stderr.write(data); // do not use debug to avoid double timestamps when calling backupupload.js
process.stderr.write(data); // do not use debug to avoid double timestamps when calling backupupload.js
});
cp.on('exit', function (code, signal) {