mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Log audit lock name in case of problem
This commit is contained in:
parent
28b6e1d7d0
commit
243d9c978a
@ -1474,7 +1474,8 @@ void sec_audit_logger_json(modsec_rec *msr) {
|
||||
/* Unlock the mutex we used to serialise access to the audit log file. */
|
||||
rc = apr_global_mutex_unlock(msr->modsecurity->auditlog_lock);
|
||||
if (rc != APR_SUCCESS) {
|
||||
msr_log(msr, 1, "Audit log: Failed to unlock global mutex: %s",
|
||||
msr_log(msr, 1, "Audit log: Failed to unlock global mutex '%s': %s",
|
||||
apr_global_mutex_lockfile(msr->modsecurity->auditlog_lock),
|
||||
get_apr_error(msr->mp, rc));
|
||||
}
|
||||
|
||||
@ -2254,7 +2255,8 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
||||
/* Unlock the mutex we used to serialise access to the audit log file. */
|
||||
rc = apr_global_mutex_unlock(msr->modsecurity->auditlog_lock);
|
||||
if (rc != APR_SUCCESS) {
|
||||
msr_log(msr, 1, "Audit log: Failed to unlock global mutex: %s",
|
||||
msr_log(msr, 1, "Audit log: Failed to unlock global mutex '%s': %s",
|
||||
apr_global_mutex_lockfile(msr->modsecurity->auditlog_lock),
|
||||
get_apr_error(msr->mp, rc));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user