diff --git a/src/routes/admin.js b/src/routes/admin.js index c0afc39b4b..61e15a0f02 100644 --- a/src/routes/admin.js +++ b/src/routes/admin.js @@ -375,7 +375,10 @@ var nconf = require('nconf'), if(err) { return next(err); } - res.json(200, {eventdata: data.toString()}); + if(data) { + data = data.toString().split('\n').reverse().join('\n'); + } + res.json(200, {eventdata: data}); }); });