diff options
Diffstat (limited to 'lib/logger.js')
-rw-r--r-- | lib/logger.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/logger.js b/lib/logger.js index 6bd8142..8481f66 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -25,19 +25,21 @@ Logger.prototype.addLogRecord = function(that) { let recKey = utilMod.getISODate(rec.date) + "+" + urlMod.parse(rec.url).host + "+" + that.bugNo; + console.log("rec = " + rec.toSource()); + let clearLogAElem = that.doc.getElementById("clearLogs"); - clearLogAElem.style.color = this.FullLogsColor; - clearLogAElem.style.fontWeight = "bolder"; + if (clearLogAElem.style.color != this.FullLogsColor) { + clearLogAElem.style.color = this.FullLogsColor; + clearLogAElem.style.fontWeight = "bolder"; + } if (this.store[recKey]) { this.store[recKey].comment += "<br/>\n" + comment; } else { this.store[recKey] = rec; } jetpack.storage.simple.sync(); - return rec; - } else { - return comment; } + return comment; }; Logger.prototype.getBugzillaAbbr = function(url) { |