Print logs correctly, as they recently got a message field added

This commit is contained in:
Juan Cruz Viotti 2015-04-27 09:30:57 -04:00
parent 69039d21c2
commit 9a3c844336
2 changed files with 4 additions and 4 deletions

View File

@ -35,10 +35,10 @@
}
if (_.isArray(message)) {
_.each(message, function(line) {
return console.log(line);
return console.log(line.message);
});
} else {
console.log(message);
console.log(message.message);
}
return done();
});

View File

@ -50,7 +50,7 @@ exports.logs =
return done(error) if error?
if _.isArray(message)
_.each message, (line) ->
console.log(line)
console.log(line.message)
else
console.log(message)
console.log(message.message)
return done()