From: Bhagya Tholpady (bbantwal) Date: Tue, 18 Aug 2020 11:59:54 +0000 (+0000) Subject: Merge pull request #2393 in SNORT/snort3 from ~BBANTWAL/snort3:configure_errors to... X-Git-Tag: 3.0.2-6~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f62695183fca6bb9e401cf653049158c62f98779;p=thirdparty%2Fsnort3.git Merge pull request #2393 in SNORT/snort3 from ~BBANTWAL/snort3:configure_errors to master Squashed commit of the following: commit f33220aa45f185a56161d5f0520c266cc5f7015e Author: Bhagya Tholpady Date: Mon Aug 10 23:05:17 2020 -0400 perf_monitor: convert the perf_monitor inspector configure warnings to errors --- diff --git a/src/network_inspectors/perf_monitor/perf_module.cc b/src/network_inspectors/perf_monitor/perf_module.cc index 5f773081f..60aeda899 100644 --- a/src/network_inspectors/perf_monitor/perf_module.cc +++ b/src/network_inspectors/perf_monitor/perf_module.cc @@ -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; } }