From: Stefan Schantl Date: Thu, 4 Feb 2016 14:38:28 +0000 (+0100) Subject: Display number of elements in the ignore list. X-Git-Tag: 2.0~32 X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fguardian.git;a=commitdiff_plain;h=5cd378cd4a4b7659ddbbbc524b1b528c53d37203 Display number of elements in the ignore list. When using "Debug" as log level now the number of elements which are placed in the ignore list (%ignorehash) will be logged. Signed-off-by: Stefan Schantl --- diff --git a/modules/Events.pm b/modules/Events.pm index a5da8e4..025fe4f 100644 --- a/modules/Events.pm +++ b/modules/Events.pm @@ -350,6 +350,12 @@ sub GenerateIgnoreList($) { # Close filehandle for the IgnoreFile. close (IGNORE); + + # Get amount of current elements in hash. + my $amount = scalar(keys(%ignorehash)); + + # Write out log message. + $logger->Log("debug", "Ignore list currently contains $amount entries."); } #