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();