From 197e98076352809946aabc2c8f042374f2af549e Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 21 Apr 2011 15:59:49 +0200 Subject: Add better logging support. https://bugzilla.mozilla.org/show_bug.cgi?id=582760 is still unfixed. --- data/lib/util.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'data/lib/util.js') 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); + } +}; -- cgit