From 3dcfd3e26ea07a9d587028ee75c0be4699b57cd2 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 11 Jan 2022 12:02:33 -0500 Subject: [PATCH] reduce debug logging --- scripts/zmaudit.pl.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/zmaudit.pl.in b/scripts/zmaudit.pl.in index 180aee58f..4fa77241f 100644 --- a/scripts/zmaudit.pl.in +++ b/scripts/zmaudit.pl.in @@ -1072,8 +1072,10 @@ sub time_of_youngest_file { foreach my $file ( readdir( DIR ) ) { next if $file =~ /^\./; $_ = (stat($dir))[9]; - $youngest = $_ if $_ and ( $_ < $youngest ); - Debug("Found younger file $file at $youngest"); + if ($_ and ($_ < $youngest)) { + $youngest = $_; + Debug("Found younger file $file at $youngest"); + } } return $youngest; } # end sub time_of_youngest_file