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
%L
format 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
%a
format modifier.
Features Changed¶
If
sys.stdout
andsys.stderr
are used in the context of the thread handling a request, calls against them to log messages will be routed back viawsgi.errors
from the per request WSGIenviron
dictionary. 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%L
formatter is used in the error log format.
New Features¶
Added new option
--error-log-format
tomod_wsgi-express
to allow the error log message format to be specified.Pass through to the WSGI per request
environ
dictionary new values formod_wsgi.connection_id
andmod_wsgi.request_id
. These are the Apache log IDs for the connection and request that it uses in log messages when using the%L
format modifier. This only applies to Apache 2.4 and later.