https://bz.apache.org/bugzilla/show_bug.cgi?id=60964

            Bug ID: 60964
           Summary: EXEC_ON_READ directives can't log at levels above
                    DEFAULT_LOGLEVEL
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: jchamp...@apache.org
  Target Milestone: ---

Filing a placeholder so I don't forget about this...

If a directive is running as EXEC_ON_READ, any attempts to log at a level above
DEFAULT_LOGLEVEL will silently fail, even if the LogLevel is tuned at the
appropriate level for that module. There are two unrelated effects that cause
this:

1) If we're not logging against a server_rec (or the server_rec is NULL), the
core logging code refuses to log anything above ap_default_loglevel, unless
it's a NOTICE or the server has been compiled with -DDEBUG.

2) If we are logging against a server_rec, the LogLevel directive will still
not have been parsed by the time EXEC_ON_READ directives are being run. So
DEFAULT_LOGLEVEL will be the highest level possible.

This seems to affect only LoadModule and LoadFile, which try to log what files
they're loading at DEBUG level. It would have affected mod_remoteip's
RemoteIPTrustedProxyList and RemoteIPInternalProxyList, if ap_pcfg_openfile's
debug logging weren't already wrapped in an #ifdef DEBUG.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to