]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
tweaked startup output, which is ugly and needs a make over
authorRuss Combs <rucombs@cisco.com>
Mon, 14 Jul 2014 21:07:53 +0000 (17:07 -0400)
committerRuss Combs <rucombs@cisco.com>
Mon, 14 Jul 2014 21:07:53 +0000 (17:07 -0400)
src/main/snort.cc
src/managers/module_manager.cc

index f33b3281ae34de2505ab3d550727c95eef4219de..dbd8afb31e835a02cc62b26a3a4ec8dccfe11f9c 100644 (file)
@@ -362,7 +362,8 @@ static void SnortInit(int argc, char **argv)
     if ( !InspectorManager::configure(snort_conf) )
         FatalError("can't initialize inspectors\n");
 
-    InspectorManager::print_config(snort_conf); // FIXIT make optional
+    if ( ScLogVerbose() )
+        InspectorManager::print_config(snort_conf);
 
     ParseRules(snort_conf);
 
index 167e05fb110a3330d149ff825e63e9e5141ea1bf..2bae2810c604696482fc84f003f429f9ad7d2491 100644 (file)
@@ -375,6 +375,16 @@ bool open_table(const char* s, int idx)
     if ( !m )
         return false;
 
+    static string last;
+
+    if ( last != key )
+    {
+        if ( !last.size() )
+            LogMessage("Configuring modules:\n");
+        LogMessage("\t %s\n", key.c_str());
+        last = key;
+    }
+
     m->begin(s, idx, s_config);
     return true;
 }