summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_main.c')
-rw-r--r--ospf6d/ospf6_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c
index 3f3d5508..10203bf8 100644
--- a/ospf6d/ospf6_main.c
+++ b/ospf6d/ospf6_main.c
@@ -283,10 +283,10 @@ main (int argc, char *argv[], char *envp[])
if (! daemon_mode)
flag = ZLOG_STDOUT;
else
- flag = 0;
+ flag = ZLOG_NOLOG;
zlog_default = openzlog (progname, flag, ZLOG_OSPF6,
- LOG_CONS|LOG_NDELAY|LOG_PERROR|LOG_PID,
+ LOG_CONS|LOG_NDELAY|LOG_PID,
LOG_DAEMON);
signal_init ();
cmd_init (1);
@@ -315,9 +315,11 @@ main (int argc, char *argv[], char *envp[])
/* Make ospf vty socket. */
vty_serv_sock (vty_addr, vty_port, OSPF6_VTYSH_PATH);
+#ifdef DEBUG
/* Print start message */
zlog_notice ("OSPF6d (Zebra-%s ospf6d-%s) starts",
ZEBRA_VERSION, OSPF6_DAEMON_VERSION);
+#endif
/* Start finite state machine, here we go! */
while (thread_fetch (master, &thread))