logs: use stream.destroy() instead of custom hooks

This commit is contained in:
Girish Ramakrishnan
2024-02-24 17:18:38 +01:00
parent 0e83658aa3
commit 13e62bc738
10 changed files with 19 additions and 10 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 }, function (e) { console.log(e); });
return shell.sudo('tail', args.concat(filePaths), { streamStdout: true }, () => {});
}
function journalctl(unit, options) {