From 5cd378cd4a4b7659ddbbbc524b1b528c53d37203 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 4 Feb 2016 15:38:28 +0100 Subject: [PATCH] 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 --- modules/Events.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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."); } # -- 2.39.2