You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2017/04/07 19:11:35 UTC

[Bug 60964] New: EXEC_ON_READ directives can't log at levels above DEFAULT_LOGLEVEL

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: jchampion@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-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Re: [Bug 60964] New: EXEC_ON_READ directives can't log at levels above DEFAULT_LOGLEVEL

Posted by luca regini <lu...@gmail.com>.
unsubscribe

On Fri, Apr 7, 2017 at 9:11 PM,  <bu...@apache.org> wrote:
> 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: jchampion@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-unsubscribe@httpd.apache.org
> For additional commands, e-mail: bugs-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60964] EXEC_ON_READ directives can't log at levels above DEFAULT_LOGLEVEL

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60964

--- Comment #1 from Jacob Champion <jc...@apache.org> ---
Note that the default loglevel can be explicitly set with -e. It's just
surprising that changing a directive to EXEC_ON_READ forces it to use a
different LogLevel from the rest of the server.

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