cmd/osbuild-service-maintenance: Log aws error

This commit is contained in:
Sanne Raymaekers 2022-02-16 13:52:11 +01:00 committed by Ondřej Budai
parent 413a013b91
commit 0f26672e45

View file

@ -62,7 +62,7 @@ func AWSCleanup(maxConcurrentRequests int, dryRun bool, accessKeyID, accessKey,
err := a.RemoveSnapshotAndDeregisterImage(images[i])
if err != nil {
logrus.Errorf("Cleanup for image %s in region %s failed", *images[i].ImageId, region)
logrus.Errorf("Cleanup for image %s in region %s failed: %v", *images[i].ImageId, region, err)
}
}(index)
}