removed in-memory buffer for logs

This commit is contained in:
aynik 2015-04-14 15:16:43 +02:00
parent 3c5b9360ed
commit 3e384d8bc6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ util.inherits(MessageArray, Array);
MessageArray.prototype.push = function(message) { MessageArray.prototype.push = function(message) {
var config = Helper.getConfig(); var config = Helper.getConfig();
if (config.log === true) { if (config.log === true) {
if (this.length > 250) this.splice(50); if (this.length > 50) this.splice(50);
} }
Array.prototype.push.call(this, message); Array.prototype.push.call(this, message);
this.count++; this.count++;