mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetics changes top of #1402
This commit is contained in:
@@ -1993,7 +1993,7 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
||||
|
||||
/* Stopwatch; left in for compatibility reasons */
|
||||
#ifdef DLOG_NO_STOPWATCH
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
#endif
|
||||
text = apr_psprintf(msr->mp, "Stopwatch: %" APR_TIME_T_FMT " %" APR_TIME_T_FMT " (- - -)\n",
|
||||
msr->request_time, (now - msr->request_time));
|
||||
@@ -2008,7 +2008,7 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
||||
sec_auditlog_write(msr, text, strlen(text));
|
||||
}
|
||||
#ifdef DLOG_NO_STOPWATCH
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Our response body does not contain chunks */
|
||||
|
@@ -505,7 +505,7 @@ AC_ARG_ENABLE(dechunk-logging,
|
||||
# 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]),
|
||||
[Enable logging of stopwatches even when log level is < 9. This is the default]),
|
||||
[
|
||||
if test "$enableval" != "no"; then
|
||||
log_stopwatch=
|
||||
|
Reference in New Issue
Block a user