Enforces that relevant status on the AuditLogs

This commit is contained in:
Felipe Zimmerle 2016-12-20 09:22:55 -03:00
parent 88fb456a16
commit 10cdf8fed9
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -263,8 +263,9 @@ bool AuditLog::saveIfRelevant(Transaction *transaction, int parts) {
return true;
}
if (this->isRelevant(transaction->m_httpCodeReturned) == false &&
transaction->m_toBeSavedInAuditlogs == false) {
if ((m_status == RelevantOnlyAuditLogStatus
&& this->isRelevant(transaction->m_httpCodeReturned) == false
&& transaction->m_toBeSavedInAuditlogs == false)) {
transaction->debug(5, "Return code `" +
std::to_string(transaction->m_httpCodeReturned) + "'" \
" is not interesting to audit logs, relevant code(s): `" +