mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds option to disable logging of stopwatches in audit log.
This commit is contained in:
committed by
Felipe Zimmerle
parent
41ae8db571
commit
7246998f09
17
configure.ac
17
configure.ac
@@ -502,6 +502,21 @@ AC_ARG_ENABLE(dechunk-logging,
|
||||
log_dechunk=''
|
||||
])
|
||||
|
||||
# Disable logging of stopwatches
|
||||
AC_ARG_ENABLE(stopwatch-logging,
|
||||
AS_HELP_STRING([--enable-stopwatch-logging],
|
||||
[Enable logging of stopwatches in audit log when log level < 9. This is the default]),
|
||||
[
|
||||
if test "$enableval" != "no"; then
|
||||
log_stopwatch=
|
||||
else
|
||||
log_stopwatch="-DLOG_NO_STOPWATCH"
|
||||
fi
|
||||
],
|
||||
[
|
||||
log_stopwatch=''
|
||||
])
|
||||
|
||||
# Ignore configure errors
|
||||
AC_ARG_ENABLE(errors,
|
||||
AS_HELP_STRING([--disable-errors],
|
||||
@@ -752,7 +767,7 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
MODSEC_EXTRA_CFLAGS="$pcre_study $pcre_match_limit $pcre_match_limit_recursion $pcre_jit $request_early $htaccess_config $lua_cache $debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api $cpu_type $unique_id $log_filename $log_server $log_collection_delete_problem $log_dechunk"
|
||||
MODSEC_EXTRA_CFLAGS="$pcre_study $pcre_match_limit $pcre_match_limit_recursion $pcre_jit $request_early $htaccess_config $lua_cache $debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api $cpu_type $unique_id $log_filename $log_server $log_collection_delete_problem $log_dechunk $log_stopwatch"
|
||||
|
||||
APXS_WRAPPER=build/apxs-wrapper
|
||||
APXS_EXTRA_CFLAGS=""
|
||||
|
Reference in New Issue
Block a user