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