]> git.ipfire.org Git - people/stevee/guardian.git/blobdiff - modules/Parser.pm
Revert "Except and log if an event could not be parsed correctly."
[people/stevee/guardian.git] / modules / Parser.pm
index 9ec058693ee8866aa82ce0979a2eba2f2f5a5d93..9c3fc87130204d8bbb674a4afdb7eecb2c0041d2 100644 (file)
@@ -30,16 +30,8 @@ sub Parser ($$) {
        # Call responsible message parser.
        my $action = $logfile_parsers{$parser}->(@message);
 
-       # 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;
+       # Return which action should be performed.
+       return "count $action";
 }
 
 #