[apparmor] [patch 02/11] mod_apparmor: use trace1 loglevel for developer-oriented debug messages [v2]

John Johansen john.johansen at canonical.com
Thu Jan 23 11:09:42 UTC 2014

On 01/23/2014 02:45 AM, Steve Beattie wrote:
> Apache 2.4 added addition logging levels. This patch converts some of
> the log messages that are more intended for mod_apparmor development
> and debugging than for sysadmins configuring mod_apparmor to use trace1
> (APLOG_TRACE1) level instead. Since apache 2.2. does not contain this
> level (or define), we define it back to APLOG_DEBUG.
> An alternate approach for backwards compatibility would be to define
> separate wrapper macros for ap_log_error and ap_log_rerror to use
> when APLOG_TRACE1 is desired, and disable them in apache 2.2 unless
> DEBUG is defined at compile time. But I'm not sure that's worth it,
> since I'm still having trouble getting all of the non-request specific
> log messages emitted in apache 2.2 to begin with.
> Patch history:
>   v1: initial version
>   v2: mark a couple of additional log messages as trace1 level
> Signed-off-by: Steve Beattie <steve at nxnw.org>

Acked-by: John Johansen <john.johansen at canonical.com>

More information about the AppArmor mailing list