aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/util.js
diff options
context:
space:
mode:
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);
+ }
}
};