This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: httplib uses print for debugging
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Replace debuglevel-related logic with logging
View: 24255
Assigned To: Nosy List: calin marina, r.david.murray
Priority: normal Keywords: patch

Created on 2015-12-11 02:12 by calin marina, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mywork.patch calin marina, 2015-12-11 02:12 patch file for latest 2.7 branch review
Messages (2)
msg256184 - (view) Author: calin marina (calin marina) * Date: 2015-12-11 02:12
httplib is using print for debugging messages and it is causing a lot of annoyance in multiprocess debugging or even single process but headless running...
As it is still used by a lot of libraries, including requests the recommended one over this for HTTP protocol client I thought sharing my update lib using logging module would be useful by someone
msg256185 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-12-11 02:31
Thanks, but since this is a new feature/change in behavior it can only go into 3.6.  Therefore, this is effectively a duplicate of issue 24255.  Others might find the patch useful, though, so it wasn't a waste to upload it :)
History
Date User Action Args
2022-04-11 14:58:24adminsetgithub: 70022
2016-04-12 19:17:01zach.waresethgrepos: - hgrepo327
2015-12-11 02:31:23r.david.murraysetstatus: open -> closed

superseder: Replace debuglevel-related logic with logging
nosy: + r.david.murray

messages: + msg256185
type: behavior -> enhancement
resolution: fixed -> duplicate
stage: resolved
2015-12-11 02:20:39calin marinasethgrepos: + hgrepo327
resolution: fixed
2015-12-11 02:18:42calin marinasethgrepos: - hgrepo326
2015-12-11 02:12:41calin marinacreate