From 2739fd83229de3bd2561297a6eb1e518a8a9434a Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sun, 29 Nov 2020 00:30:00 +0800 Subject: [PATCH] config.cli: forward stderr and stdout of managed rTorrent daemon --- config.cli.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.cli.js b/config.cli.js index e2d6733c..4bf2e813 100644 --- a/config.cli.js +++ b/config.cli.js @@ -161,6 +161,12 @@ if (argv.rtorrent) { const rTorrentProcess = spawn('rtorrent', args.concat(['-o', opts])); + rTorrentProcess.stderr.on('data', (data) => { + console.error(`${data}`); + }); + rTorrentProcess.stdout.on('data', (data) => { + console.log(`${data}`); + }); rTorrentProcess.on('close', () => { process.exit(); });