logs: use stream.destroy() instead of custom hooks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user