[bridgedb/master] Add optional debugging logs to test_HTTPServer.py.

commit 619d0a588f0c0fe6cd9a2d1a812258c8042acb30 Author: Isis Lovecruft <isis@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):
participants (1)
-
isis@torproject.org