mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Enforces that relevant status on the AuditLogs
This commit is contained in:
parent
88fb456a16
commit
10cdf8fed9
@ -263,8 +263,9 @@ bool AuditLog::saveIfRelevant(Transaction *transaction, int parts) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this->isRelevant(transaction->m_httpCodeReturned) == false &&
|
||||
transaction->m_toBeSavedInAuditlogs == false) {
|
||||
if ((m_status == RelevantOnlyAuditLogStatus
|
||||
&& this->isRelevant(transaction->m_httpCodeReturned) == false
|
||||
&& transaction->m_toBeSavedInAuditlogs == false)) {
|
||||
transaction->debug(5, "Return code `" +
|
||||
std::to_string(transaction->m_httpCodeReturned) + "'" \
|
||||
" is not interesting to audit logs, relevant code(s): `" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user