classification
Title: BaseHTTPServer log_message should log to sys.stdout
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 3.2, Python 3.1, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, dstanek, tomkm
Priority: normal Keywords: patch

Created on 2009-07-30 11:13 by tomkm, last changed 2010-08-04 01:17 by dstanek.

Files
File name Uploaded Description Edit
6602.patch dstanek, 2010-08-04 01:17
Messages (3)
msg91093 - (view) Author: (tomkm) Date: 2009-07-30 11:13
I believe that the log_message method of BaseHTTPServer should log to
sys.stdout not sys.stderr, whereas log_error should log to sys.stderr
instead of just delegating to log_message.

I found this inconsistency when using SimpleXMLRPCServer which logs both
successful (200) and non-successful (non-200) requests to stderr when
logRequests is set to True.
msg112305 - (view) Author: Mark Lawrence (BreamoreBoy) Date: 2010-08-01 10:13
The OP's comments strike me as sensible, do others agree or disagree?
msg112733 - (view) Author: David Stanek (dstanek) Date: 2010-08-04 01:17
I think this is the right thing to do. To help this along I've included a patch. The codereview is also available: http://codereview.appspot.com/1697062.
History
Date User Action Args
2010-08-04 01:17:08dstaneksetfiles: + 6602.patch

nosy: + dstanek
messages: + msg112733

keywords: + patch
2010-08-01 10:13:52BreamoreBoysetnosy: + BreamoreBoy
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.5
messages: + msg112305

components: + Library (Lib), - None
type: behavior
stage: test needed
2009-07-30 11:13:23tomkmcreate