X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fguardian.git;a=blobdiff_plain;f=modules%2FParser.pm;h=4f03bf958064598ff5e9a38974f6ea46805bb713;hp=a73192db23701680bea149b39dd8be3306536fd1;hb=7587e837c071ac35993b942e1786deca87abdc51;hpb=0b1fe0462fe0e7837228129f6c1d89e64a5ab720 diff --git a/modules/Parser.pm b/modules/Parser.pm index a73192d..4f03bf9 100644 --- a/modules/Parser.pm +++ b/modules/Parser.pm @@ -31,8 +31,14 @@ sub Parser ($$) { # Call responsible message parser. my $action = $logfile_parsers{$parser}->(@message); - # Return which action should be performed. - return "count $action"; + # In case an action has been returned, return it too. + if (defined($action)) { + # Return which action should be performed. + return "count $action"; + } + + # Return undef, no action required. + return undef; } #