From b7de1a762de1c496f1ac18636c53b17700384435 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Mon, 11 Jul 2016 13:30:12 +0200 Subject: [PATCH] Added errors to log.txt Signed-off-by: Henry Gressmann --- mqp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mqp.js b/mqp.js index 714934a..8bdeb7e 100644 --- a/mqp.js +++ b/mqp.js @@ -46,6 +46,7 @@ switch (process.argv[2]) { // Spawn a new musiqpad daemon process, might need some more settings but I'm waiting for the new config storage for that. daemon.daemon(`${__dirname}/start.js`, '--daemon', { stdout: fs.openSync(path.join(process.cwd(), 'log.txt'), 'a'), + stderr: fs.openSync(path.join(process.cwd(), 'log.txt'), 'a'), }); } }); @@ -69,8 +70,8 @@ switch (process.argv[2]) { console.log('\nRestarting musiqpad'); daemon.daemon(`${__dirname}/start.js`, '--daemon', { stdout: fs.openSync(path.join(process.cwd(), 'log.txt'), 'a'), + stderr: fs.openSync(path.join(process.cwd(), 'log.txt'), 'a'), }); - } else { console.log('musiqpad could not be restarted, as a running instance could not be found.'); }