suricata: reorder start

Initalizing output just after configuration file parsing allow to
log almost all messages accordingly to configuration.
pull/576/head
Eric Leblond 12 years ago
parent 7bcacc712a
commit fdc1757e34

@ -1884,6 +1884,10 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
/* Since our config is now loaded we can finish configurating the
* logging module. */
SCLogLoadConfig(suri.daemon);
/* load the pattern matchers */
MpmTableSetup();
#ifdef __SC_CUDA_SUPPORT__
@ -1925,10 +1929,6 @@ int main(int argc, char **argv)
NFQInitConfig(FALSE);
#endif
/* Since our config is now loaded we can finish configurating the
* logging module. */
SCLogLoadConfig(suri.daemon);
/* Load the Host-OS lookup. */
SCHInfoLoadFromConfig();
if (suri.run_mode != RUNMODE_UNIX_SOCKET) {

Loading…
Cancel
Save