aboutsummaryrefslogtreecommitdiffstats
path: root/lib/logger.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-21 17:44:25 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-21 17:44:25 +0200
commitb5da15622a8ee84cac5c8489c72610bd24b09c29 (patch)
treeea39f899db898780e05b5d2fe7f4cc55e09ba754 /lib/logger.js
parenta0756d1dbd9e8bbb37293b8b756f6aee1e205d65 (diff)
downloadbugzilla-triage-b5da15622a8ee84cac5c8489c72610bd24b09c29.tar.gz
Skipping over process pages && system notification.
Diffstat (limited to 'lib/logger.js')
-rw-r--r--lib/logger.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/logger.js b/lib/logger.js
index 594f5c2..0f7de76 100644
--- a/lib/logger.js
+++ b/lib/logger.js
@@ -11,9 +11,7 @@ function Logger(store, abbsMap) {
this.EmptyLogsColor = new Color(0, 255, 0);
this.FullLogsColor = new Color(0, 40, 103);
- console.log("store = " + store.toSource());
this.store = store;
- console.log("abbsMap = " + abbsMap.toSource());
this.abbsMap = abbsMap;
};
@@ -44,8 +42,6 @@ Logger.prototype.addLogRecord = function(that) {
console.log("recKey = " + recKey);
console.log("rec = " + rec.toSource());
- console.log("this.store = " + this.store);
-
if (this.store[recKey]) {
this.store[recKey].comment += "<br/>\n" + comment;
} else {
@@ -55,6 +51,14 @@ Logger.prototype.addLogRecord = function(that) {
return comment;
};
+Logger.prototype.getLength = function () {
+ var counter = 0;
+ for (var key in this.store) {
+ counter += 1;
+ }
+ return counter;
+}
+
Logger.prototype.getBugzillaAbbr = function(url) {
// for https://bugzilla.redhat.com/show_bug.cgi?id=579123 get RH
// for https://bugzilla.mozilla.org/show_bug.cgi?id=579123 get MoFo