aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/util.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-05 12:27:10 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:52:35 +0200
commitda49b6460ae02a1a1f0e86aef8f541798730a18f (patch)
treea2c02abdd37fdff33ae4a2b7a3e989f8312a6261 /data/lib/util.js
parentc603f0a1a2985bf225786122beeaf248ca87cd99 (diff)
downloadbugzilla-triage-da49b6460ae02a1a1f0e86aef8f541798730a18f.tar.gz
Make my console.myDebug configurable via about:config preference.
That is the Boolean variable bugzilla-triage.setting.debug
Diffstat (limited to 'data/lib/util.js')
-rw-r--r--data/lib/util.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index dc927b6..11cf3bc 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -375,11 +375,10 @@ NotLoggedinException.prototype.toString = function () {
return this.name + ': "' + this.message + '"';
};
-// Are we debugging?
-var debugFlag = true;
-
console.myDebug = function myDebug(str) {
- if (debugFlag) {
- console.log(str);
+ if (typeof config !== "undefined") {
+ if (config.debuggingVerbose) {
+ console.log(str);
+ }
}
};