dsa-check-zone-rrsig-expiration-many: Print which threads we are waiting on with...
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-zone-rrsig-expiration-many
index cfbacfd..4139b0d 100755 (executable)
@@ -177,8 +177,8 @@ while (time - $begin <= $params->{timeout}) {
                else { push @{$count->{'unknown'}}, $zone; };
                delete $threads{$zone};
        }
-       # print STDERR "foo #threads:", (scalar keys %threads), ":", join(",", keys %threads),"\n";
        last if scalar keys %threads == 0;
+       print STDERR (scalar keys %threads), " threads left: ", join(" ", keys %threads), "\n" if $params->{'debug'};
        sleep 1;
 }
 for my $zone (sort {$a cmp $b} keys %threads) {