From 18fd5b1af6a7a0dede3e15fcfe1b7f5bd1ee9b35 Mon Sep 17 00:00:00 2001 From: Greg Sidelinger Date: Tue, 6 Sep 2022 13:22:29 +0000 Subject: [PATCH] Log when infoblox provider deletes a record at info Signed-off-by: Greg Sidelinger Signed-off-by: Greg Sidelinger --- provider/infoblox/infoblox.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/provider/infoblox/infoblox.go b/provider/infoblox/infoblox.go index 851799e335..f636cf5e44 100644 --- a/provider/infoblox/infoblox.go +++ b/provider/infoblox/infoblox.go @@ -679,7 +679,7 @@ func (p *ProviderConfig) deleteRecords(deleted infobloxChangeMap) { if p.dryRun { logrus.Infof("Would delete %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "A", record.Name, record.Ipv4Addr, record.Zone) } else { - logrus.Debugf("Deleting %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "A", record.Name, record.Ipv4Addr, record.Zone) + logrus.Infof("Deleting %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "A", record.Name, record.Ipv4Addr, record.Zone) _, err = p.client.DeleteObject(record.Ref) } } @@ -688,7 +688,7 @@ func (p *ProviderConfig) deleteRecords(deleted infobloxChangeMap) { if p.dryRun { logrus.Infof("Would delete %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "PTR", record.PtrdName, record.Ipv4Addr, record.Zone) } else { - logrus.Debugf("Deleting %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "PTR", record.PtrdName, record.Ipv4Addr, record.Zone) + logrus.Infof("Deleting %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "PTR", record.PtrdName, record.Ipv4Addr, record.Zone) _, err = p.client.DeleteObject(record.Ref) } } @@ -697,7 +697,7 @@ func (p *ProviderConfig) deleteRecords(deleted infobloxChangeMap) { if p.dryRun { logrus.Infof("Would delete %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "CNAME", record.Name, record.Canonical, record.Zone) } else { - logrus.Debugf("Deleting %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "CNAME", record.Name, record.Canonical, record.Zone) + logrus.Infof("Deleting %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "CNAME", record.Name, record.Canonical, record.Zone) _, err = p.client.DeleteObject(record.Ref) } } @@ -706,7 +706,7 @@ func (p *ProviderConfig) deleteRecords(deleted infobloxChangeMap) { if p.dryRun { logrus.Infof("Would delete %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "TXT", record.Name, record.Text, record.Zone) } else { - logrus.Debugf("Deleting %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "TXT", record.Name, record.Text, record.Zone) + logrus.Infof("Deleting %s record named '%s' to '%s' for Infoblox DNS zone '%s'.", "TXT", record.Name, record.Text, record.Zone) _, err = p.client.DeleteObject(record.Ref) } }