summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorSid Khot <sidkhot@cumulusnetworks.com>2016-08-18 04:36:54 +0200
committerSid Khot <sidkhot@cumulusnetworks.com>2016-08-18 04:36:54 +0200
commitc05795b16b4bcb9de4663f3fc9664a623277d47a (patch)
tree0fa49699ada82afba5915865829a421ad5be7796 /ripngd
parentBGP: neighbor activate lines for ipv4 unicast are not in the sub context (diff)
downloadfrr-c05795b16b4bcb9de4663f3fc9664a623277d47a.tar.xz
frr-c05795b16b4bcb9de4663f3fc9664a623277d47a.zip
Fix for CM-12450 Ensure quagga logs at startup are sent to syslog (until log configuration is processed)
Ticket: CM-12450 Reviewed By: CCR-5112 Testing Done: Manual
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripng_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ripngd/ripng_main.c b/ripngd/ripng_main.c
index a1c71c856..f401a4315 100644
--- a/ripngd/ripng_main.c
+++ b/ripngd/ripng_main.c
@@ -204,7 +204,9 @@ main (int argc, char **argv)
zlog_default = openzlog(progname, ZLOG_RIPNG, 0,
LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON);
zprivs_init (&ripngd_privs);
- zlog_set_file (NULL, LOG_DEFAULT_FILENAME, zlog_default->default_lvl);
+#if defined(HAVE_CUMULUS)
+ zlog_set_level (NULL, ZLOG_DEST_SYSLOG, zlog_default->default_lvl);
+#endif
while (1)
{