# Call responsible message parser.
my $action = $logfile_parsers{$parser}->(@message);
- # Return which action should be performed.
- return "count $action";
+ # If the parser successfully parsed the message, an action
+ # has been returned.
+ if ($action) {
+ # Return which action should be performed.
+ return "count $action";
+ }
+
+ # If the parser was not able to parse the the given message
+ # in the right way, return Nothing.
+ return;
}
#