summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul <paul>2003-07-26 06:05:18 +0000
committerpaul <paul>2003-07-26 06:05:18 +0000
commit828eb7fb46a61ab7bc5fdf393dc8c5b65fd1ec24 (patch)
tree6d1753c204fdcd349e28e5a42a2725af1139bf3d
parent736d3441e267c76056d6fcc2f59cd09a90f3af21 (diff)
2003-07-26 Paul Jakma <paul@dishone.st>
* lib/command.c: Add config_log_syslog_facility_cmd, to set syslog facility. This was a commit to zebra.org on May 20, merge in to zebra-pj.
-rw-r--r--lib/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log.c b/lib/log.c
index 9c676428..88e1dbf0 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -106,7 +106,7 @@ vzlog (struct zlog *zl, int priority, const char *format, va_list *args)
/* Syslog output */
if (zl->flags & ZLOG_SYSLOG)
- vsyslog (priority, format, args[ZLOG_SYSLOG_INDEX]);
+ vsyslog (priority|zlog_default->facility, format, args[ZLOG_SYSLOG_INDEX]);
/* File output. */
if (zl->flags & ZLOG_FILE)