mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
removed clear log, doesnt work with logrotate-stream
This commit is contained in:
@@ -241,11 +241,6 @@ function getHourlyStatsForSet(set, hours, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
SocketAdmin.clearLog = function(socket, data, callback) {
|
||||
var logPath = path.join('logs', path.sep, 'output.log');
|
||||
fs.truncate(logPath, callback);
|
||||
};
|
||||
|
||||
SocketAdmin.getMoreEvents = function(socket, next, callback) {
|
||||
if (parseInt(next, 10) < 0) {
|
||||
return callback(null, {data: [], next: next});
|
||||
|
||||
Reference in New Issue
Block a user