Skip to content

Commit b51e555

Browse files
defanatorzimmerle
authored andcommitted
Decrease log level for disruptive actions to "warn"
Rationale: blocking a request in result of applying some preconfigured modsecurity rules is not actually an error: it is something expected.
1 parent 2d888a5 commit b51e555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_modsecurity_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ ngx_http_modsecurity_process_intervention (Transaction *transaction, ngx_http_re
102102
intervention.log = "(no log message was specified)";
103103
}
104104

105-
ngx_log_error(NGX_LOG_ERR, (ngx_log_t *)r->connection->log, 0, "%s", intervention.log);
105+
ngx_log_error(NGX_LOG_WARN, (ngx_log_t *)r->connection->log, 0, "%s", intervention.log);
106106

107107
if (intervention.url != NULL)
108108
{

0 commit comments

Comments
 (0)