summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2012-10-28 18:34:54 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2012-10-28 18:34:54 +0000
commitbdef5b4fd85163097378c66e8e784fa1af14531e (patch)
tree576073382f77fc0413f409a2713c9a1c38236bb9
parent8684023064f437d440166d4a20127826e416d821 (diff)
use the default SYSLOG_FACILITY definition which is LOCAL5
noted by ajacoutot@
-rw-r--r--usr.sbin/nginx/conf/nginx.conf2
-rw-r--r--usr.sbin/nginx/src/core/ngx_log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/nginx/conf/nginx.conf b/usr.sbin/nginx/conf/nginx.conf
index 87a4b303a06..d2944dd0c56 100644
--- a/usr.sbin/nginx/conf/nginx.conf
+++ b/usr.sbin/nginx/conf/nginx.conf
@@ -6,7 +6,7 @@ worker_processes 1;
#error_log logs/error.log info;
#error_log syslog:notice|logs/error.log;
-#syslog local6 nginx;
+#syslog local5 nginx;
#pid logs/nginx.pid;
diff --git a/usr.sbin/nginx/src/core/ngx_log.c b/usr.sbin/nginx/src/core/ngx_log.c
index 07bc01319af..b62687433ea 100644
--- a/usr.sbin/nginx/src/core/ngx_log.c
+++ b/usr.sbin/nginx/src/core/ngx_log.c
@@ -645,7 +645,7 @@ ngx_set_syslog(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
{
char *program;
ngx_str_t *value;
- ngx_int_t facility = LOG_LOCAL6, match = 0;
+ ngx_int_t facility = SYSLOG_FACILITY, match = 0;
ngx_uint_t n;
value = cf->args->elts;