[issue24255] Replace debuglevel-related logic with logging

Eryn Wells report at bugs.python.org
Sun Jun 7 19:17:28 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue24255>
_______________________________________


More information about the Python-bugs-list mailing list