File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2
2
v3.0.????? - ?
3
3
---------------------------
4
4
5
+ - Setting http response code on the auditlog.
6
+ [Issue #1592 - @zimmerle]
5
7
- Refactoring on RuleMessage class, now accepting http code as parameter.
6
8
[@zimmerle]
7
9
- Having disruptive msgs as disruptive [instead of warnings] on audit log
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ class RuleMessage {
72
72
std::string log (int props) {
73
73
return RuleMessage::log (this , props);
74
74
}
75
+ std::string log (int props, int responseCode) {
76
+ return RuleMessage::log (this , props, responseCode);
77
+ }
75
78
std::string errorLog () {
76
79
return RuleMessage::log (this , ClientLogMessageInfo | ErrorLogTailLogMessageInfo);
77
80
}
Original file line number Diff line number Diff line change @@ -1485,7 +1485,7 @@ std::string Transaction::toOldAuditLogFormat(int parts,
1485
1485
if (parts & audit_log::AuditLog::HAuditLogPart) {
1486
1486
audit_log << " --" << trailer << " -" << " H--" << std::endl;
1487
1487
for (auto a : m_rulesMessages) {
1488
- audit_log << a.log () << std::endl;
1488
+ audit_log << a.log (0 , m_httpCodeReturned ) << std::endl;
1489
1489
}
1490
1490
audit_log << std::endl;
1491
1491
/* * TODO: write audit_log H part. */
You can’t perform that action at this time.
0 commit comments