Fixed invalid logging

This commit is contained in:
Marc Stern 2024-08-12 17:06:35 +02:00
parent 73a79af593
commit d32c8f1ad8

View File

@ -489,11 +489,7 @@ char *update_rule_target_ex(modsec_rec *msr, msre_ruleset *ruleset, msre_rule *r
end: end:
if (my_error_msg) { if (my_error_msg) {
if (msr) msr_log(msr, 9, my_error_msg); if (msr) msr_log(msr, 9, my_error_msg);
#if !defined(MSC_TEST) else ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, my_error_msg);
else {
ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, " ModSecurity: Successfully appended variable");
}
#endif
} }
if (target_list != NULL) free(target_list); if (target_list != NULL) free(target_list);
if (replace != NULL) free(replace); if (replace != NULL) free(replace);