Skip to content

Commit

Permalink
Increase log level for disruptive actions to "error" (x2)
Browse files Browse the repository at this point in the history
As discussed at: owasp-modsecurity#116
  • Loading branch information
Felipe Zimmerle committed Nov 29, 2018
1 parent 2bae400 commit 58b1453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_http_modsecurity_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 58b1453

Please sign in to comment.