summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nginx/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2012-10-25 13:02:46 +0000
committerrobert <robert@openbsd.org>2012-10-25 13:02:46 +0000
commiteda1912998b01fd9c6e125e3e0968b4bb981a3d2 (patch)
treea170f48893a9ac1afe2fc18ea036adb30c7bd5c8 /usr.sbin/nginx/src/http/ngx_http_request.c
parentRemove support email address from the example that is intended for (diff)
downloadwireguard-openbsd-eda1912998b01fd9c6e125e3e0968b4bb981a3d2.tar.xz
wireguard-openbsd-eda1912998b01fd9c6e125e3e0968b4bb981a3d2.zip
add syslog support to nginx
Diffstat (limited to 'usr.sbin/nginx/src/http/ngx_http_request.c')
-rw-r--r--usr.sbin/nginx/src/http/ngx_http_request.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/nginx/src/http/ngx_http_request.c b/usr.sbin/nginx/src/http/ngx_http_request.c
index c104db1c0c6..b2515ab947b 100644
--- a/usr.sbin/nginx/src/http/ngx_http_request.c
+++ b/usr.sbin/nginx/src/http/ngx_http_request.c
@@ -433,6 +433,9 @@ ngx_http_init_request(ngx_event_t *rev)
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
c->log->file = clcf->error_log->file;
+#if (NGX_ENABLE_SYSLOG)
+ c->log->priority = clcf->error_log->priority;
+#endif
if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) {
c->log->log_level = clcf->error_log->log_level;
}
@@ -1832,6 +1835,9 @@ found:
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
r->connection->log->file = clcf->error_log->file;
+#if (NGX_ENABLE_SYSLOG)
+ r->connection->log->priority = clcf->error_log->priority;
+#endif
if (!(r->connection->log->log_level & NGX_LOG_DEBUG_CONNECTION)) {
r->connection->log->log_level = clcf->error_log->log_level;