main: Move setup_logging to after the config post-processing checks.
Michael
This commit is contained in:
parent
dcbf99d334
commit
2ccebf7a95
16
src/main.c
16
src/main.c
@ -343,14 +343,6 @@ main (int argc, char **argv)
|
|||||||
exit (EX_SOFTWARE);
|
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
|
/* Set the default values if they were not set in the config
|
||||||
* file. */
|
* file. */
|
||||||
if (config.port == 0) {
|
if (config.port == 0) {
|
||||||
@ -372,6 +364,14 @@ main (int argc, char **argv)
|
|||||||
config.idletimeout = MAX_IDLE_TIME;
|
config.idletimeout = MAX_IDLE_TIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = setup_logging ();
|
||||||
|
if (ret != 0) {
|
||||||
|
exit (EX_SOFTWARE);
|
||||||
|
}
|
||||||
|
|
||||||
|
processed_config_file = TRUE;
|
||||||
|
send_stored_logs ();
|
||||||
|
|
||||||
init_stats ();
|
init_stats ();
|
||||||
|
|
||||||
/* If ANONYMOUS is turned on, make sure that Content-Length is
|
/* If ANONYMOUS is turned on, make sure that Content-Length is
|
||||||
|
Loading…
Reference in New Issue
Block a user