[tor-commits] [bridgedb/develop] Add optional debugging logs to test_HTTPServer.py.

isis at torproject.org isis at torproject.org
Wed Mar 26 05:49:31 UTC 2014


commit 619d0a588f0c0fe6cd9a2d1a812258c8042acb30
Author: Isis Lovecruft <isis at torproject.org>
Date:   Wed Mar 19 17:43:28 2014 +0000

    Add optional debugging logs to test_HTTPServer.py.
---
 lib/bridgedb/test/test_HTTPServer.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/test/test_HTTPServer.py b/lib/bridgedb/test/test_HTTPServer.py
index da910c6..e0c81f8 100644
--- a/lib/bridgedb/test/test_HTTPServer.py
+++ b/lib/bridgedb/test/test_HTTPServer.py
@@ -11,6 +11,7 @@
 
 """Unittests for :mod:`bridgedb.HTTPServer`."""
 
+import logging
 import os
 import shutil
 
@@ -25,8 +26,11 @@ from twisted.web.test import requesthelper
 
 from bridgedb import HTTPServer
 
-import logging
+
+# For additional logger output for debugging, comment out the following:
 logging.disable(50)
+# and then uncomment the following line:
+#HTTPServer.logging.getLogger().setLevel(10)
 
 
 class ReplaceErrorPageTests(unittest.TestCase):





More information about the tor-commits mailing list