diff --git a/CHANGES b/CHANGES index f882e8dd..67bcf946 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,11 @@ v3.0.????? - ? --------------------------- + - Makes clear to the user whenever the audit log is empty due to missing + JSON support. + [Issue #1585 - @zimmerle] + - Makes auditlog more verbose on debug logs + [Issue: #1559 - @zimmerle] - Enable support for AuditLogFormat [Issue: #1583, #1493 and #1453 - @victorhora] - Adds macro expansion for @rx operator diff --git a/src/transaction.cc b/src/transaction.cc index 1efd341a..487033e6 100644 --- a/src/transaction.cc +++ b/src/transaction.cc @@ -1701,7 +1701,7 @@ std::string Transaction::toJSON(int parts) { return log; #else - return std::string(""); + return std::string("{\"error\":\"ModSecurity was not compiled with JSON support.\"}"); #endif }