From: Stefan Schantl Date: Wed, 20 Jul 2016 11:15:21 +0000 (+0200) Subject: Display ignored addresses when running in debug mode. X-Git-Tag: 2.0~2 X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fguardian.git;a=commitdiff_plain;h=8a79df70921e2a0da6a31d32f4f3a3ff5ecdf08b;hp=fa67ac02c9f665d835346d14c05d1aa0b8ab2d64 Display ignored addresses when running in debug mode. Signed-off-by: Stefan Schantl --- diff --git a/modules/Events.pm b/modules/Events.pm index 30fdd96..c451914 100644 --- a/modules/Events.pm +++ b/modules/Events.pm @@ -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; } #