aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/util.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-21 15:59:49 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:45:52 +0200
commit197e98076352809946aabc2c8f042374f2af549e (patch)
tree8d68cc50858fef2ddf19dc50e64c3fbe99f583ca /data/lib/util.js
parent0b6ea333d13e6ae1cc4fa53e22c67246e0f95f32 (diff)
downloadbugzilla-triage-197e98076352809946aabc2c8f042374f2af549e.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.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index 40a782f..fa111aa 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -355,3 +355,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);
+ }
+};