From ee41966eef751a7941224fe67bee1195bb22c57e Mon Sep 17 00:00:00 2001 From: Hiro Protagonist Date: Wed, 7 Sep 2016 15:20:24 +1200 Subject: [PATCH] fixlogs --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 5b8cfb6..cedadaf 100755 --- a/main.js +++ b/main.js @@ -313,10 +313,11 @@ var commandHandlers = function commandHandlers(command, cb) { }); }, getLogs: function() { - fs.readFile(__dirname + '/' + config.logPath, 'utf-8', function(err, data) { + fs.readFile(__dirname + '/process.log', 'utf-8', function(err, data) { if (err) throw err; let lines = data.trim().split('\n').slice(-100); + console.log(lines); lines.shift(); lines.pop();