summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_main.c
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 /ospfd/ospf_main.c
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 'ospfd/ospf_main.c')
-rw-r--r--ospfd/ospf_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 495ee2fd0..48f39d009 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -288,7 +288,9 @@ main (int argc, char **argv)
zlog_default = openzlog (progname, ZLOG_OSPF, instance,
LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON);
zprivs_init (&ospfd_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
/* OSPF master init. */
ospf_master_init ();