fixed compilation error with disable_debug_log flag

This commit is contained in:
Izik Abramov
2017-12-05 15:35:26 +02:00
committed by Felipe Zimmerle
parent 81e1cdced3
commit e9f3312ea9
5 changed files with 32 additions and 4 deletions

View File

@@ -274,7 +274,9 @@ bool AuditLog::saveIfRelevant(Transaction *transaction) {
bool AuditLog::saveIfRelevant(Transaction *transaction, int parts) {
bool saveAnyway = false;
if (m_status == OffAuditLogStatus || m_status == NotSetLogStatus) {
#ifndef NO_LOGS
transaction->debug(5, "Audit log engine was not set.");
#endif
return true;
}