This commit is contained in:
barisusakli
2014-10-06 18:19:33 -04:00
parent c827485de5
commit 394a01fdef
4 changed files with 62 additions and 9 deletions

View File

@@ -241,4 +241,12 @@ SocketAdmin.clearLog = function(socket, data, callback) {
fs.truncate(logPath, callback);
};
SocketAdmin.getMoreEvents = function(socket, next, callback) {
if (parseInt(next, 10) < 0) {
return callback(null, {data: [], next: next});
}
events.getLog(next, 5000, callback);
};
module.exports = SocketAdmin;