From 4d051a5ff8b8c12dfca5b9dae7df95f506b53f74 Mon Sep 17 00:00:00 2001 From: Victor Hora Date: Mon, 25 Jun 2018 17:37:42 -0400 Subject: [PATCH] Increase log level for disruptive actions to error --- CHANGES | 2 ++ src/ngx_http_modsecurity_module.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 04b2252..5dc1405 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ v1.0.x - YYYY-MMM-DD (To be released) ------------------------------------- + - Increase log level for disruptive actions to "error" + [Issue #112 - @victorhora ] - Fix processing of response body when gzip compression is enabled [Issue #107 - @turchanov] - Fixed processing of response body chunks in diff --git a/src/ngx_http_modsecurity_module.c b/src/ngx_http_modsecurity_module.c index 0c491cc..c509834 100644 --- a/src/ngx_http_modsecurity_module.c +++ b/src/ngx_http_modsecurity_module.c @@ -151,7 +151,7 @@ ngx_http_modsecurity_process_intervention (Transaction *transaction, ngx_http_re log = "(no log message was specified)"; } - ngx_log_error(NGX_LOG_WARN, (ngx_log_t *)r->connection->log, 0, "%s", log); + ngx_log_error(NGX_LOG_ERR, (ngx_log_t *)r->connection->log, 0, "%s", log); if (intervention.log != NULL) { free(intervention.log);