diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-21 15:59:49 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-21 15:59:49 +0200 |
commit | 400ba1a166ca82acc9c2f645a2faa6781c60180f (patch) | |
tree | 06d8aebd76526a87c18895529606e8621d68bbdd /data/lib/util.js | |
parent | 0f3cebd7a1fd94a0291c52ef7529b3767e636637 (diff) | |
download | bugzilla-triage-400ba1a166ca82acc9c2f645a2faa6781c60180f.tar.gz |
Add better logging support.
https://bugzilla.mozilla.org/show_bug.cgi?id=582760 is still unfixed.
Diffstat (limited to 'data/lib/util.js')
-rw-r--r-- | data/lib/util.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/lib/util.js b/data/lib/util.js index 6256171..51f3704 100644 --- a/data/lib/util.js +++ b/data/lib/util.js @@ -351,3 +351,9 @@ var NotLoggedinException = function NotLoggedinException (message) { NotLoggedinException.prototype.toString = function () { return this.name + ': "' + this.message + '"'; }; + +console.myDebug = function myDebug(str) { + if (debugFlag) { + console.log(str); + } +}; |