Adds "matched" line to the audit logs

This commit is contained in:
Felipe Zimmerle
2016-02-12 13:28:43 -03:00
parent 362b376acb
commit a2ffb36159
3 changed files with 7 additions and 0 deletions

View File

@@ -391,6 +391,10 @@ bool Rule::evaluate(Transaction *trasn) {
if (ret) {
bool containsDisruptive = false;
bool chainResult = false;
ruleMessage->m_match = "Operator `" + this->op->op +
"' with parameter `" + this->op->param + "' against" \
" variable `" + v->m_key + "' (Value: `" + value + "' )";
#ifndef NO_LOGS
trasn->debug(4, "Rule returned 1.");
#endif