summaryrefslogtreecommitdiff
path: root/tools/bug_tool/ClientCookie/_Debug.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bug_tool/ClientCookie/_Debug.py')
-rw-r--r--tools/bug_tool/ClientCookie/_Debug.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/bug_tool/ClientCookie/_Debug.py b/tools/bug_tool/ClientCookie/_Debug.py
new file mode 100644
index 0000000000..17f050e252
--- /dev/null
+++ b/tools/bug_tool/ClientCookie/_Debug.py
@@ -0,0 +1,9 @@
+import ClientCookie
+
+def debug(text):
+ if ClientCookie.CLIENTCOOKIE_DEBUG: _debug(text)
+
+def _debug(text, *args):
+ if args:
+ text = text % args
+ ClientCookie.DEBUG_STREAM.write(text+"\n")