Having disruptive msgs as disruptive [instead of warnings] on audit log

Issue #1592
This commit is contained in:
Felipe Zimmerle
2017-10-17 14:56:18 -03:00
parent 30797a458b
commit 39fb75c34d
4 changed files with 38 additions and 1 deletions

View File

@@ -1485,7 +1485,11 @@ std::string Transaction::toOldAuditLogFormat(int parts,
if (parts & audit_log::AuditLog::HAuditLogPart) {
audit_log << "--" << trailer << "-" << "H--" << std::endl;
for (auto a : m_rulesMessages) {
audit_log << a.noClientErrorLog() << std::endl;
if (a.m_isDisruptive == true) {
audit_log << a.noClientErrorLog(true) << std::endl;
} else {
audit_log << a.noClientErrorLog() << std::endl;
}
}
audit_log << std::endl;
/** TODO: write audit_log H part. */