diff --git a/lib/riemann/dash/public/views/log.js b/lib/riemann/dash/public/views/log.js index 8e11d92..20bf54c 100644 --- a/lib/riemann/dash/public/views/log.js +++ b/lib/riemann/dash/public/views/log.js @@ -76,6 +76,9 @@ // Accept events from a subscription and update the log. LogView.prototype.update = function(event) { this.log.append(this.lineTemplate(event)); + while (this.log[0].children.length > this.lines) { + this.log[0].deleteRow(0); + } if (this.tracking) { this.scrollToBottom(); }; };