]> git.ipfire.org Git - people/stevee/guardian.git/commitdiff
Display number of elements in the ignore list.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 4 Feb 2016 14:38:28 +0000 (15:38 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 4 Feb 2016 14:38:28 +0000 (15:38 +0100)
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 <stefan.schantl@ipfire.org>
modules/Events.pm

index a5da8e45d9ef802d4a72c8c89a274012439b0b14..025fe4f243fa4e685d3dabb6cf83a97ccd22feb3 100644 (file)
@@ -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.");
 }
 
 #