Option to disable logging of dechunking

This commit is contained in:
Marc Stern
2017-05-02 11:09:10 -03:00
committed by Felipe Zimmerle
parent a4724dfdab
commit d7383c39dd
3 changed files with 24 additions and 1 deletions

View File

@@ -487,6 +487,21 @@ AC_ARG_ENABLE(handler-logging,
log_handler=''
])
# Disable logging of dechunking
AC_ARG_ENABLE(dechunk-logging,
AS_HELP_STRING([--enable-dechunk-logging],
[Enable logging of dechunking in audit log when log level < 9. This is the default]),
[
if test "$enableval" != "no"; then
log_dechunk=
else
log_dechunk="-DLOG_NO_DECHUNK"
fi
],
[
log_dechunk=''
])
# Ignore configure errors
AC_ARG_ENABLE(errors,
AS_HELP_STRING([--disable-errors],
@@ -737,7 +752,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"
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"
APXS_WRAPPER=build/apxs-wrapper
APXS_EXTRA_CFLAGS=""