Fix rules `messages' on the auditlog

This commit is contained in:
Felipe Zimmerle
2016-02-10 12:03:52 -03:00
parent 9474373264
commit 77900ed4e2
12 changed files with 43 additions and 33 deletions

View File

@@ -35,10 +35,12 @@ LogData::LogData(std::string action)
}
bool LogData::evaluate(Rule *rule, Transaction *transaction) {
bool LogData::evaluate(Rule *rule, Transaction *transaction, RuleMessage *rm) {
std::string data = MacroExpansion::expand(m_data, transaction);
rule->m_log_data = data;
rm->m_data = data;
return true;
}