Eryn Wells added the comment: Here's a patch that replaces all the debuglevel stuff with logging. There's a single module-level logger that handles it all.
I wasn't sure if it would be okay to break API compatibility, so I kept the debuglevel flag and the set_debuglevel() method even though they don't do anything. Most of the information that was being print()ed is still there, but I cleaned it up a little and added a few more messages. The INFO level messages are pretty sparse, with DEBUG providing a lot more raw data from the request. ---------- keywords: +patch Added file: http://bugs.python.org/file39651/http-client-logging.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24255> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com