[wwwsearch-commits] r25820 - wwwsearch/mechanize/trunk

jjlee at codespeak.net jjlee at codespeak.net
Thu Apr 13 23:31:01 CEST 2006


Author: jjlee
Date: Thu Apr 13 23:31:00 2006
New Revision: 25820

Modified:
   wwwsearch/mechanize/trunk/README.html.in
Log:
Fix docs re debug output

Modified: wwwsearch/mechanize/trunk/README.html.in
==============================================================================
--- wwwsearch/mechanize/trunk/README.html.in	(original)
+++ wwwsearch/mechanize/trunk/README.html.in	Thu Apr 13 23:31:00 2006
@@ -118,12 +118,20 @@
 # default: no need to do this unless you have some reason to use a
 # particular cookiejar)
 br.set_cookiejar(cj)
-# Print information about HTTP redirects and Refreshes.
+# Log information about HTTP redirects and Refreshes.
 br.set_debug_redirects(True)
-# Print HTTP response bodies (ie. the HTML, most of the time).
+# Log HTTP response bodies (ie. the HTML, most of the time).
 br.set_debug_responses(True)
 # Print HTTP headers.
 br.set_debug_http(True)
+
+# To make sure you're seeing all debug output:
+for logger in [
+    logging.getLogger("ClientCookie"),
+    logging.getLogger("cookielib"),
+    ]:
+    logger.addHandler(logging.StreamHandler(sys.stdout))
+    logger.setLevel(logging.INFO)
 """)}
 
 


More information about the wwwsearch-commits mailing list