]> git.ipfire.org Git - people/stevee/guardian.git/blobdiff - modules/Events.pm
Only log the request to flush the firewall chain in debug mode.
[people/stevee/guardian.git] / modules / Events.pm
index 30fdd968ee5acacd3fe5ab4f40e0423d89b5d6a2..007ad46305f829036e34a8be48e2ea2d44f461a5 100644 (file)
@@ -341,7 +341,7 @@ sub CallFlush ($) {
        my $self = shift;
 
        # Log the call for flushing.
-       $logger->Log("info", "Flush has been called...");
+       $logger->Log("debug", "Flush has been called...");
 
        # Call flush.
        my $error = &DoFlush();
@@ -484,7 +484,19 @@ sub GenerateIgnoreList($) {
        my $amount = scalar(keys(%ignorehash));
 
        # Write out log message.
-       $logger->Log("debug", "Ignore list currently contains $amount entries.");
+       $logger->Log("debug", "Ignore list currently contains $amount entries:");
+
+       # Sort the ignore hash.
+       my @sorted_addresses = &Guardian::Base::SortAddressHash(\%ignorehash);
+
+       # Loop through the entire array.
+       foreach my $address (@sorted_addresses) {
+               # Log the ignored address.
+               $logger->Log("debug", "\- $address");
+       }
+
+       # Finished return nothing.
+       return;
 }
 
 #