mod_python APLOG_NOERRNO unable to log on Apache 2.4

Bug #1247013 reported by Jay Freeman (saurik)
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libapache2-mod-python (Ubuntu)
New
Low
Unassigned

Bug Description

When an error occurs from mod_python on Saucy (which uses Apache 2.4) there is nothing logged. I have tracked this issue down to the value of APLOG_NOERRNO being incorrect. This value is defined to be (APLOG_LEVELMASK + 1); on Apache 2.2, APLOG_LEVELMASK was 7, but on Apache 2.4 it is 15. The value in mod_python's Python code (which sadly can't use the C definition in a direct manner) is hardcoded as 8, but for Apache 2.4 it needs to be updated to 16. This variable is defined in lib/python/mod_python/apache.py, and should be an easy fix. (FWIW, I have not experienced other issues so far with the mod_python 3.3.1 patches for Apache 2.4.) (Also, I will note that the 3.4 and now 3.5 of mod_python from upstream no longer even have this variable: it still exists for backwards-compatibility with old code, but it is defined as 0.)

Tags: patch
Revision history for this message
Jay Freeman (saurik) (saurik) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch to fix this issue against 3.3.1" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in libapache2-mod-python (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.