mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Only calculate debug data when we are debugging.
NOTE: Last commit message was wrong.
This commit is contained in:
parent
e03ea11f9a
commit
97a1718d39
@ -1210,7 +1210,9 @@ static int execute_operator(msre_var *var, msre_rule *rule, modsec_rec *msr,
|
||||
var->value_len));
|
||||
}
|
||||
|
||||
time_before_regex = apr_time_now(); /* IMP1 time_before_regex? */
|
||||
if (msr->txcfg->debuglog_level >= 4) {
|
||||
time_before_regex = apr_time_now(); /* IMP1 time_before_regex? */
|
||||
}
|
||||
rc = rule->op_metadata->execute(msr, rule, var, &my_error_msg);
|
||||
if (msr->txcfg->debuglog_level >= 4) {
|
||||
msr_log(msr, 4, "Operator completed in %" APR_TIME_T_FMT " usec.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user