X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fguardian.git;a=blobdiff_plain;f=guardian;h=691ddc66e1f0013add0fd5245f7864d70931d049;hp=7b4c23fae7b86c7e2d5b1ea7a726a23b03baf2f9;hb=dd0483736d6d2f194908eff73f36f50de1dd0197;hpb=5cd378cd4a4b7659ddbbbc524b1b528c53d37203 diff --git a/guardian b/guardian index 7b4c23f..691ddc6 100644 --- a/guardian +++ b/guardian @@ -259,6 +259,12 @@ sub Worker ($) { # Put the required action into the queue. $queue->enqueue(@action); } + # If no action is returned by the Parser, the message + # could not be parser corretly. + else { + # Log failed parse attempt. + $logger->Log("err", "Error parsing event: \[$parser - @message\]"); + } } else { # Sleep for 10ms until the next round of the loop will start. sleep(0.01);