This commit is contained in:
Valentin Boettcher 2016-09-09 02:46:09 +00:00
parent 98aa84cdc7
commit 917c9a0bde

View file

@ -41,6 +41,7 @@ let logger = new(winston.Logger)({
filename: __dirname + '/process.log',
colorize: true,
timestamp: true,
level: 'success',
json: true,
maxsize: 500000,
maxFiles: 10
@ -331,7 +332,7 @@ var commandHandlers = function commandHandlers(command, cb) {
if (err) {
data = [];
} else
if (data.length === 1)
if (data.length === 0)
data = [];
socket.emit('data', {
type: 'logs',