Description
Describe the bug...
Steps to reproduce
- Run moin under mod_python 3 and apache 2
Details
Writes to stderr no longer appear to end up in the apache error log under apache2/modpy3. Logging should be performed using the relevant mod_python functions.
MoinMoin Version |
1.5, 1.6 |
OS and Version |
Debian, Sarge |
Python Version |
2.3 |
Server Setup |
Apache2, ModPy 3 |
Workaround
Patch bundle attached: apache2modpy3logging.hg -- NickPhillips
Discussion
Also works correctly with older apache/modpy
Hi Nick,
I tried merging your bundle into 1.6, but having a deeper look at it, I think it doesn't fit for 1.6:
1.6 uses Python's "logging" module, see MoinMoin/server/__init_.py below "initialize the logging"
no request class has a special "log" function any more, it is all done by a RequestBase.log method which uses "logging" framework
what we need is some ModPythonConfig class derived from MoinMoin.server.Config (see the other modules in MoinMoin.server, e.g. CGI.py) so stuff is done the same way for mod_python as it is done for the other servers (I don't use mod_python, therefore this has not been refactored yet)
Thanks,
-- ThomasWaldmann 2007-05-27 11:18:43
Plan
- Priority:
- Assigned to:
- Status: this should be fixed since quite a while in 1.6. can someone confirm this and close the bug?
Was open for >3 months without response, assume fixed. -- JohannesBerg