WSGI paranoia with stdout/stderr

There is fear and uncertainty in this pull request to PyPI - https://bitbucket.org/techtonik/pypi-techtonik/changeset/5396f8c60d49#commen... - which is about that writing to stderr _might_ break things in WSGI applications. As a consequence logging to console will not be accepted in debug mode, which is disappointing, but not as disappointing as the absence of proper explanation. Martin couldn't provide any grounds for his fears, so I am asking fellow Python developers if anybody remember "if writing to stderr can break things in generic WSGI application" and reassure Martin that everything will be ok. -- anatoly t.

On Sun, 13 May 2012 14:02:50 +0300 anatoly techtonik <techtonik@gmail.com> wrote:
There is fear and uncertainty in this pull request to PyPI - https://bitbucket.org/techtonik/pypi-techtonik/changeset/5396f8c60d49#commen... - which is about that writing to stderr _might_ break things in WSGI applications.
As a consequence logging to console will not be accepted in debug mode, which is disappointing, but not as disappointing as the absence of proper explanation. Martin couldn't provide any grounds for his fears, so I am asking fellow Python developers if anybody remember "if writing to stderr can break things in generic WSGI application" and reassure Martin that everything will be ok.
According to this blog post, writing to stderr is fine (stdout is not): http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output.html Regards Antoine.

Am 13.05.2012 13:09, schrieb Antoine Pitrou:
On Sun, 13 May 2012 14:02:50 +0300 anatoly techtonik <techtonik@gmail.com> wrote:
There is fear and uncertainty in this pull request to PyPI - https://bitbucket.org/techtonik/pypi-techtonik/changeset/5396f8c60d49#commen... - which is about that writing to stderr _might_ break things in WSGI applications.
As a consequence logging to console will not be accepted in debug mode, which is disappointing, but not as disappointing as the absence of proper explanation. Martin couldn't provide any grounds for his fears, so I am asking fellow Python developers if anybody remember "if writing to stderr can break things in generic WSGI application" and reassure Martin that everything will be ok.
According to this blog post, writing to stderr is fine (stdout is not): http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output.html
Whether yes or no, this topic doesn't belong to python-dev: it's either for python-list or the web-SIG. Georg
participants (3)
-
anatoly techtonik
-
Antoine Pitrou
-
Georg Brandl