check_backuppc: improve debug output

This commit is contained in:
Emmanuel Lacour 2024-10-07 11:45:36 +02:00 committed by Benjamin Renard
parent 6c048b83b7
commit a18b4d6ae9
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -174,6 +174,9 @@ foreach my $host (sort(keys(%Status)))
# Debug
if ($verbose == 2)
{
while (my ($key, $value) = each %{$Status{$host}}) {
print "$key:\t$value\n";
}
print "Host $host state " . $Status{$host}{'state'} . "\n";
print " with reason: " . $Status{$host}{'reason'} . "\n";
print " with error: " . $Status{$host}{'error'} . "\n";