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 22v3.0.????? - ?
33---------------------------
44
5+ - Setting http response code on the auditlog.
6+ [Issue #1592 - @zimmerle]
57 - Refactoring on RuleMessage class, now accepting http code as parameter.
68 [@zimmerle]
79 - 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 {
7272 std::string log (int props) {
7373 return RuleMessage::log (this , props);
7474 }
75+ std::string log (int props, int responseCode) {
76+ return RuleMessage::log (this , props, responseCode);
77+ }
7578 std::string errorLog () {
7679 return RuleMessage::log (this , ClientLogMessageInfo | ErrorLogTailLogMessageInfo);
7780 }
Original file line number Diff line number Diff line change @@ -1485,7 +1485,7 @@ std::string Transaction::toOldAuditLogFormat(int parts,
14851485 if (parts & audit_log::AuditLog::HAuditLogPart) {
14861486 audit_log << " --" << trailer << " -" << " H--" << std::endl;
14871487 for (auto a : m_rulesMessages) {
1488- audit_log << a.log () << std::endl;
1488+ audit_log << a.log (0 , m_httpCodeReturned ) << std::endl;
14891489 }
14901490 audit_log << std::endl;
14911491 /* * TODO: write audit_log H part. */
You can’t perform that action at this time.
0 commit comments