# 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;
}
#