From: Eric Leblond Date: Thu, 3 Oct 2013 11:43:58 +0000 (+0200) Subject: suricata: reorder start X-Git-Tag: suricata-2.0beta2~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdc1757e34df8a3437b6e4112aacf1dae85a54f6;p=thirdparty%2Fsuricata.git suricata: reorder start Initalizing output just after configuration file parsing allow to log almost all messages accordingly to configuration. --- diff --git a/src/suricata.c b/src/suricata.c index c8217693bf..1c86ca17ac 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -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) {