Merge branch '1733-filtro-de-traps-llena-el-log-de-error' into 'develop'
Replace a 'next' statement that exits a subroutine with a 'return'. See merge request artica/pandorafms!1229
This commit is contained in:
commit
dca895c2a4
|
@ -198,7 +198,7 @@ sub pandora_snmptrapd {
|
||||||
(my $trap_ver, $line) = split(/\[\*\*\]/, $line, 2);
|
(my $trap_ver, $line) = split(/\[\*\*\]/, $line, 2);
|
||||||
|
|
||||||
# Process SNMP filter
|
# Process SNMP filter
|
||||||
next if (matches_filter ($dbh, $pa_config, $line) == 1);
|
return if (matches_filter ($dbh, $pa_config, $line) == 1);
|
||||||
|
|
||||||
logger($pa_config, "Reading trap '$line'", 10);
|
logger($pa_config, "Reading trap '$line'", 10);
|
||||||
my ($date, $time, $source, $oid, $type, $type_desc, $value, $data) = ('', '', '', '', '', '', '', '');
|
my ($date, $time, $source, $oid, $type, $type_desc, $value, $data) = ('', '', '', '', '', '', '', '');
|
||||||
|
|
Loading…
Reference in New Issue