]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2393 in SNORT/snort3 from ~BBANTWAL/snort3:configure_errors to...
authorBhagya Tholpady (bbantwal) <bbantwal@cisco.com>
Tue, 18 Aug 2020 11:59:54 +0000 (11:59 +0000)
committerBhagya Tholpady (bbantwal) <bbantwal@cisco.com>
Tue, 18 Aug 2020 11:59:54 +0000 (11:59 +0000)
Squashed commit of the following:

commit f33220aa45f185a56161d5f0520c266cc5f7015e
Author: Bhagya Tholpady <bbantwal@cisco.com>
Date:   Mon Aug 10 23:05:17 2020 -0400

    perf_monitor: convert the perf_monitor inspector configure warnings to errors

src/network_inspectors/perf_monitor/perf_module.cc

index 5f773081f5ee99f84bc1e61284d462acfc8e0901..60aeda8998edeccb2f7418476b6532c392b1d21d 100644 (file)
@@ -395,7 +395,7 @@ bool ModuleConfig::resolve()
     ptr = ModuleManager::get_module(name.c_str());
     if ( ptr == nullptr )
     {
-        ParseWarning(WARN_CONF, "Perf monitor is unable to find the %s module.\n", name.c_str());
+        ParseError("Perf monitor is unable to find the %s module.\n", name.c_str());
         return false;
     }
 
@@ -425,7 +425,7 @@ bool ModuleConfig::resolve()
         {
             if ( !i.second )
             {
-                ParseWarning(WARN_CONF, "Perf monitor is unable to find %s.%s count", name.c_str(), i.first.c_str());
+                ParseError("Perf monitor is unable to find %s.%s count", name.c_str(), i.first.c_str());
                 return false;
             }
         }