summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_main.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2016-07-11 21:57:24 +0200
committerDon Slice <dslice@cumulusnetworks.com>2016-07-11 21:57:24 +0200
commit2caa9b39575933ec86f5ff54ceb83b3c4460518a (patch)
treea1348592a0d4b41464c41b42f6b9a6201b84b720 /ospfd/ospf_main.c
parentpimd: static joins no longer worked (diff)
downloadfrr-2caa9b39575933ec86f5ff54ceb83b3c4460518a.tar.xz
frr-2caa9b39575933ec86f5ff54ceb83b3c4460518a.zip
all: add default log file if none are defined
Added a default log file named /var/log/quagga/Quagga.log to every daemon to capture log entries if no log file is defined. This also allows the capture of logged information prior to reading each daemon's config file. If a log file is defined manually, it will override this default file name. Ticket: CM-10987 Signed-off-by: Don Slice Reviewed By: Donald Sharp Testing Done: Manual testing
Diffstat (limited to 'ospfd/ospf_main.c')
-rw-r--r--ospfd/ospf_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 62eb41e77..495ee2fd0 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -287,6 +287,8 @@ 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);
/* OSPF master init. */
ospf_master_init ();
@@ -295,7 +297,6 @@ main (int argc, char **argv)
master = om->master;
/* Library inits. */
- zprivs_init (&ospfd_privs);
signal_init (master, array_size(ospf_signals), ospf_signals);
cmd_init (1);
debug_init ();