summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-07 00:36:58 +0100
committerMichael Adam <obnox@samba.org>2009-12-07 00:40:25 +0100
commit2ccebf7a9545477b4596403cda947e1ac20765a9 (patch)
tree2c2d9b334fbd66392c4dff376f9c7b6ee9d0cc43
parentdcbf99d3348a73ba2a4022735c6a5775e67ffa45 (diff)
downloadtinyproxy-2ccebf7a9545477b4596403cda947e1ac20765a9.tar.gz
tinyproxy-2ccebf7a9545477b4596403cda947e1ac20765a9.zip
main: Move setup_logging to after the config post-processing checks.
Michael
Diffstat (limited to '')
-rw-r--r--src/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index a4b805b..cb6c84b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -343,14 +343,6 @@ main (int argc, char **argv)
exit (EX_SOFTWARE);
}
- ret = setup_logging ();
- if (ret != 0) {
- exit (EX_SOFTWARE);
- }
-
- processed_config_file = TRUE;
- send_stored_logs ();
-
/* Set the default values if they were not set in the config
* file. */
if (config.port == 0) {
@@ -372,6 +364,14 @@ main (int argc, char **argv)
config.idletimeout = MAX_IDLE_TIME;
}
+ ret = setup_logging ();
+ if (ret != 0) {
+ exit (EX_SOFTWARE);
+ }
+
+ processed_config_file = TRUE;
+ send_stored_logs ();
+
init_stats ();
/* If ANONYMOUS is turned on, make sure that Content-Length is