mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Access log: allowed logs to syslog with "if=" (ticket #596).
This commit is contained in:
parent
4b5876c922
commit
8f0f4c10e9
@ -1254,17 +1254,6 @@ process_formats:
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
if (log->syslog_peer != NULL) {
|
||||
if (cf->args->nelts > 3) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"parameter \"%V\" is not supported by syslog",
|
||||
&value[3]);
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
return NGX_CONF_OK;
|
||||
}
|
||||
|
||||
size = 0;
|
||||
flush = 0;
|
||||
gzip = 0;
|
||||
@ -1361,6 +1350,12 @@ process_formats:
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
if (log->syslog_peer) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"logs to syslog cannot be buffered");
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
if (log->file->data) {
|
||||
buffer = log->file->data;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user