Skip to content

Commit

Permalink
Changes log callback to reflect latest changes on libmod
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Zimmerle committed Mar 7, 2017
1 parent 134bd36 commit 5175214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ngx_http_modsecurity_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int ngx_http_modescurity_store_ctx_header(ngx_http_request_t *r, ngx_str_t *name
#endif

/* ngx_http_modsecurity_log.c */
void ngx_http_modsecurity_log(void *log, const char* msg);
void ngx_http_modsecurity_log(void *log, const void* data);
ngx_int_t ngx_http_modsecurity_log_handler(ngx_http_request_t *r);

/* ngx_http_modsecurity_pre_access.c */
Expand Down
4 changes: 3 additions & 1 deletion src/ngx_http_modsecurity_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@


void
ngx_http_modsecurity_log(void *log, const char* msg)
ngx_http_modsecurity_log(void *log, const void* data)
{
const char *msg;
if (log == NULL) {
return;
}
msg = (const char *) data;

ngx_log_error(NGX_LOG_INFO, (ngx_log_t *)log, 0, "%s", msg);
}
Expand Down

0 comments on commit 5175214

Please sign in to comment.