reduce debug logging

This commit is contained in:
Isaac Connor 2022-01-11 12:02:33 -05:00
parent 71c7b324e9
commit 3dcfd3e26e
1 changed files with 4 additions and 2 deletions

View File

@ -1072,9 +1072,11 @@ sub time_of_youngest_file {
foreach my $file ( readdir( DIR ) ) { foreach my $file ( readdir( DIR ) ) {
next if $file =~ /^\./; next if $file =~ /^\./;
$_ = (stat($dir))[9]; $_ = (stat($dir))[9];
$youngest = $_ if $_ and ( $_ < $youngest ); if ($_ and ($_ < $youngest)) {
$youngest = $_;
Debug("Found younger file $file at $youngest"); Debug("Found younger file $file at $youngest");
} }
}
return $youngest; return $youngest;
} # end sub time_of_youngest_file } # end sub time_of_youngest_file