diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-05 12:27:10 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-05-05 12:27:10 +0200 |
commit | 4b99c3d6a0efca79d94fc29398f0eab1fd75d492 (patch) | |
tree | 610d660aaac3f687ecc7cc8238d4d2a11f60c4a7 /data/lib/util.js | |
parent | 2a8cfd4c1b55125d3211694496cea35cc9603ff9 (diff) | |
download | bugzilla-triage-4b99c3d6a0efca79d94fc29398f0eab1fd75d492.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.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/data/lib/util.js b/data/lib/util.js index 6ed131e..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 = false; - console.myDebug = function myDebug(str) { - if (debugFlag) { - console.log(str); + if (typeof config !== "undefined") { + if (config.debuggingVerbose) { + console.log(str); + } } }; |