Add option to not log shell subprocess stdout+stderr

When tailing the box log file this leads to logline recursion
This commit is contained in:
Johannes Zellner
2024-07-25 10:21:57 +02:00
parent 8d9043e590
commit 51bb2d2bc2
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ function tail(filePaths, options) {
const args = [ LOGTAIL_CMD, '--lines=' + lines ];
if (options.follow) args.push('--follow');
return shell.sudo('tail', args.concat(filePaths), { streamStdout: true }, () => {});
return shell.sudo('tail', args.concat(filePaths), { streamStdout: true, dropStdout: true, dropStdErr: true }, () => {});
}
function journalctl(unit, options) {