summaryrefslogtreecommitdiff
path: root/lib/libfrr.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-31 23:49:11 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-02 23:36:42 +0200
commitd34cb7f0b7a9ff4c484ae4158f22e0bebf17586b (patch)
tree47dda734691f544581feab8f4c4000d7d7566466 /lib/libfrr.c
parentbeaa54706a6a18022eac79b3af3d543c21708102 (diff)
lib: plug logging hole during startup
zlog_* doesn't work in startup before we've loaded the real logging configuration. Add some code to log to stderr for that window of time. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/libfrr.c')
-rw-r--r--lib/libfrr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c
index 6ebf837a1d..55d7784752 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -693,6 +693,9 @@ void frr_run(struct thread_master *master)
daemon_ctl_sock = -1;
}
+ /* end fixed stderr startup logging */
+ zlog_startup_stderr = false;
+
struct thread thread;
while (thread_fetch(master, &thread))
thread_call(&thread);