[issue19917] [httplib] logging information for request is not pretty printed

2015-10-02 Thread Berker Peksag
Berker Peksag added the comment: Closing as a duplicate of issue 24255. -- nosy: +berker.peksag resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> Replace debuglevel-related logic with logging ___ Python tr

[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread R. David Murray
R. David Murray added the comment: It doesn't use logging because (I think) logging didn't exist when it was implemented. Whether or not we want to change that is a more complicated question, I think. Probably we don't, for backward compatibility reasons. --

[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread Demian Brecht
Demian Brecht added the comment: I have a few questions about this one: 1. Why is print used to begin with? Surely this should use debug logging. Using print, you lose the benefits of logging: Timestamps, if used in the configured logger, can be invaluable to match up against logs generated by

[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: I believe, repr() is the correct call here. You should know the proper end of line characters like \n, \r\n which were sent in the request while debugging. A pretty print here, while look good, might remove that capability and thus may not add any value in m

[issue19917] [httplib] logging information for request is not pretty printed

2014-06-16 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +dbrecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19917] [httplib] logging information for request is not pretty printed

2013-12-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not an expert in web stuff, but off the top of my head, it seems that requests should be handled the same way as responses. -- nosy: +orsenthil, r.david.murray, terry.reedy stage: -> test needed type: -> enhancement versions: +Python 3.5 ___

[issue19917] [httplib] logging information for request is not pretty printed

2013-12-07 Thread Matej Cepl
New submission from Matej Cepl: looking at http://hg.python.org/cpython/file/543c76769c14/Lib/http/client.py#l847 (logging in HTTPConnection.send method; but this code has been same since like forever) I see that the HTTP request is NOT pretty printed: if self.debuglevel > 0: prin