]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #911 in SNORT/snort3 from appid_stats to master
authorTom Peters (thopeter) <thopeter@cisco.com>
Tue, 6 Jun 2017 16:08:32 +0000 (12:08 -0400)
committerTom Peters (thopeter) <thopeter@cisco.com>
Tue, 6 Jun 2017 16:08:32 +0000 (12:08 -0400)
Squashed commit of the following:

commit 9e6310eba1bf2f4388b0d882e6de33e1ae2c5b67
Author: Steven Baigal <sbaigal@cisco.com>
Date:   Wed May 24 17:05:33 2017 -0400

    removed empty stats printing that was executed from main thread

src/network_inspectors/appid/appid_inspector.cc

index a9c9fb54d4a92f4cf6a71483f85a7e3471cd0fd7..0a7d1ccd7ba902d38b891285a5e8d0dddd342c5d 100644 (file)
 
 static THREAD_LOCAL AppIdStatistics* appid_stats_manager = nullptr;
 
-static void dump_appid_stats()
-{
-    LogMessage("Application Identification Preprocessor:\n");
-    LogMessage("   Total packets received : %" PRIu64 "\n", appid_stats.packets);
-    LogMessage("  Total packets processed : %" PRIu64 "\n", appid_stats.processed_packets);
-    if (thirdparty_appid_module)
-        thirdparty_appid_module->print_stats();
-    LogMessage("    Total packets ignored : %" PRIu64 "\n", appid_stats.ignored_packets);
-    AppIdServiceState::dump_stats();
-}
-
 // FIXIT-L - appid cleans up openssl now as it is the primary (only) user... eventually this
 //           should probably be done outside of appid
 static void openssl_cleanup()
@@ -78,9 +67,6 @@ AppIdInspector::AppIdInspector(const AppIdModuleConfig* pc)
 
 AppIdInspector::~AppIdInspector()
 {
-    if (config->debug)
-        dump_appid_stats();
-
     delete active_config;
     delete config;
 }