From bd3b8ae9f831bc835bca9d0bda194b4872f7dde8 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 21 Jul 2017 15:25:10 -0700 Subject: [PATCH] Note how many debug logs we have after we load them from DB FREEBIE --- js/debugLog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/debugLog.js b/js/debugLog.js index 17989ffb8..63e56079b 100644 --- a/js/debugLog.js +++ b/js/debugLog.js @@ -25,7 +25,9 @@ model: LogEntry, comparator: 'time', initialize: function() { - this.fetch({remove: false}); + this.fetch({remove: false}).then(function() { + console.log('Debug log: after fetch have', this.length, 'entries'); + }.bind(this)); }, log: function(str) { var entry = this.add({time: Date.now(), value: str});