]> git.ipfire.org Git - people/stevee/guardian.git/blobdiff - guardian
Rename &_initFileposition() to &GetFileposition() and allow to become exported.
[people/stevee/guardian.git] / guardian
index 57255c5cc91ea221276366222d6d34cf68678cbc..691ddc66e1f0013add0fd5245f7864d70931d049 100644 (file)
--- 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);
@@ -387,6 +393,9 @@ sub Reload () {
        # Update logger object in mainsettings hash.
        $mainsettings{Logger} = $logger;
 
+       # Update ignore list.
+       &Guardian::Events::GenerateIgnoreList($mainsettings{IgnoreFile});
+
        # Re-generate hash of monitored files.
        %monitored_files = &Guardian::Base::GenerateMonitoredFiles(\%mainsettings, \%monitored_files);