log each record processed

This commit is contained in:
Steven Polley 2024-11-05 22:19:38 -07:00
parent 926593d59c
commit 656988e17f

View File

@ -50,6 +50,7 @@ func main() {
} }
for _, record := range records { for _, record := range records {
log.Printf("processing record '%s' of type '%s'", record.Name, record.Type)
analytic, err := cfClient.GetRecordAnalytic(record) analytic, err := cfClient.GetRecordAnalytic(record)
if err != nil { if err != nil {
log.Printf("failed to get record report for record '%s' in zone '%s' with ID '%s': %v", record.Name, zone.Name, zone.ID, err) log.Printf("failed to get record report for record '%s' in zone '%s' with ID '%s': %v", record.Name, zone.Name, zone.ID, err)