Version 4.5.4¶
Version 4.5.4 of mod_wsgi can be obtained from:
Bugs Fixed¶
- When using Apache 2.4 and daemon mode, the connection and request log
IDs from the Apache child worker processes were not being copied across
to the daemon process so that log messages generated against the request
would use the same ID in logs when using the
%Lformat modifier. - When using Apache 2.4 and daemon mode, the remote client port
information was not being cached such that log messages generated
against the request would use the port in logs when using the
%aformat modifier.
Features Changed¶
- If
sys.stdoutandsys.stderrare used in the context of the thread handling a request, calls against them to log messages will be routed back viawsgi.errorsfrom the per request WSGIenvirondictionary. This avoids the danger of logged messages from different request handlers being intermixed as buffering will now be done on a per request basis. Such messages will also be logged with the correct connection and request log ID if the%Lformatter is used in the error log format.
New Features¶
- Added new option
--error-log-formattomod_wsgi-expressto allow the error log message format to be specified. - Pass through to the WSGI per request
environdictionary new values formod_wsgi.connection_idandmod_wsgi.request_id. These are the Apache log IDs for the connection and request that it uses in log messages when using the%Lformat modifier. This only applies to Apache 2.4 and later.