mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Refactoring on RuleMessage class, now accepting http code as parameter
This commit is contained in:
@@ -1485,11 +1485,7 @@ std::string Transaction::toOldAuditLogFormat(int parts,
|
||||
if (parts & audit_log::AuditLog::HAuditLogPart) {
|
||||
audit_log << "--" << trailer << "-" << "H--" << std::endl;
|
||||
for (auto a : m_rulesMessages) {
|
||||
if (a.m_isDisruptive == true) {
|
||||
audit_log << a.noClientErrorLog(true) << std::endl;
|
||||
} else {
|
||||
audit_log << a.noClientErrorLog() << std::endl;
|
||||
}
|
||||
audit_log << a.log() << std::endl;
|
||||
}
|
||||
audit_log << std::endl;
|
||||
/** TODO: write audit_log H part. */
|
||||
|
Reference in New Issue
Block a user