summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-22 13:15:48 +0100
committerMichael Adam <obnox@samba.org>2009-12-23 00:27:32 +0100
commit210e82d08dcb1a8526edaeebe5064e68fc55a2ee (patch)
tree38c71cbcb0bf8c19b991e28632a71da8471e7f99
parent891846f23e3e10e301743376f073991dac41c13e (diff)
log: call send_stored_logs in setup_logging instead of in main().
This is where it actually belongs. Michael
-rw-r--r--src/log.c2
-rw-r--r--src/main.c1
2 files changed, 2 insertions, 1 deletions
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 ();