Closed GoogleCodeExporter closed 9 years ago
In revision 1060 of trunk for 3.0, added closed and isatty attributes to Log
object as well as close() method.
For wsgi.errors these aren't required, but log object also used to stderr and
stdout (when enabled) and code may
assume these methods may exist for stderr and stdout. The closed and isatty
attributes always yield false and
close() will raise an run time error indicating that log cannot be closed.
Original comment by Graham.Dumpleton@gmail.com
on 7 Sep 2008 at 4:58
Also see:
http://groups.google.com/group/modwsgi/browse_frm/thread/bedd18b56d64fc75?hl=en
for further discussion of issue.
Possible workaround for what Mercurial is doing is to use:
import sys
sys.stdout = sys.__stdout__
sys.stderr = sys.__stderr__
in WSGI script file.
This should only be used if have no other choice though as any logging will now
no longer appear in Apache error log
files unless explicitly flushed. Also, if using mod_wsgi daemon mode in a
virtual host with virtual host specific error log
file, logging through stdout/stderr will actually appear in main Apache error
log and not in per virtual host error log file.
Original comment by Graham.Dumpleton@gmail.com
on 10 Sep 2008 at 12:15
Backported to 2.X branch for 2.4 in revision 1239.
Original comment by Graham.Dumpleton@gmail.com
on 16 Mar 2009 at 9:58
Version 2.4 of mod_wsgi now released.
Original comment by Graham.Dumpleton@gmail.com
on 11 Apr 2009 at 10:25
Original issue reported on code.google.com by
Graham.Dumpleton@gmail.com
on 30 Apr 2008 at 12:24