From 210e82d08dcb1a8526edaeebe5064e68fc55a2ee Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 22 Dec 2009 13:15:48 +0100 Subject: log: call send_stored_logs in setup_logging instead of in main(). This is where it actually belongs. Michael --- src/log.c | 2 ++ src/main.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/log.c b/src/log.c index 066dff2..61ca9f8 100644 --- a/src/log.c +++ b/src/log.c @@ -279,6 +279,8 @@ int setup_logging (void) } logging_initialized = TRUE; + send_stored_logs (); + ret = 0; done: diff --git a/src/main.c b/src/main.c index fb7ac37..63a9a75 100644 --- a/src/main.c +++ b/src/main.c @@ -364,7 +364,6 @@ main (int argc, char **argv) } processed_config_file = TRUE; - send_stored_logs (); init_stats (); -- cgit v1.2.3