Skip to content

Commit

Permalink
Remove formatting handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Valery Kholodkov committed Sep 19, 2010
1 parent 83510ce commit f6a178d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ngx_http_syslog_module.c
Expand Up @@ -194,21 +194,6 @@ ngx_http_syslog_handler(ngx_http_request_t *r)
return NGX_OK;
}

static ngx_int_t
ngx_syslog_handler(ngx_log_t *log, u_char *buf, size_t len)
{
u_char errstr[NGX_MAX_ERROR_STR], *p;

p = ngx_cpymem(errstr, buf,
len >= NGX_MAX_ERROR_STR ? NGX_MAX_ERROR_STR - 1 : len);

*p++ = '\0';

syslog(LOG_CRIT, "%s", errstr);

return NGX_OK;
}

static void *
ngx_http_syslog_create_main_conf(ngx_conf_t *cf)
{
Expand Down

0 comments on commit f6a178d

Please sign in to comment.