Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pdns logging #3811

Merged
merged 1 commit into from
Aug 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions provider/pdns/pdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func (p *PDNSProvider) ApplyChanges(ctx context.Context, changes *plan.Changes)

// Create
for _, change := range changes.Create {
log.Debugf("CREATE: %+v", change)
log.Infof("CREATE: %+v", change)
}
// We only attempt to mutate records if there are any to mutate. A
// call to mutate records with an empty list of endpoints is still a
Expand All @@ -465,7 +465,7 @@ func (p *PDNSProvider) ApplyChanges(ctx context.Context, changes *plan.Changes)
}

for _, change := range changes.UpdateNew {
log.Debugf("UPDATE-NEW: %+v", change)
log.Infof("UPDATE-NEW: %+v", change)
}
if len(changes.UpdateNew) > 0 {
err := p.mutateRecords(changes.UpdateNew, PdnsReplace)
Expand All @@ -476,14 +476,14 @@ func (p *PDNSProvider) ApplyChanges(ctx context.Context, changes *plan.Changes)

// Delete
for _, change := range changes.Delete {
log.Debugf("DELETE: %+v", change)
log.Infof("DELETE: %+v", change)
}
if len(changes.Delete) > 0 {
err := p.mutateRecords(changes.Delete, PdnsDelete)
if err != nil {
return err
}
}
log.Debugf("Changes pushed out to PowerDNS in %s\n", time.Since(startTime))
log.Infof("Changes pushed out to PowerDNS in %s\n", time.Since(startTime))
return nil
}
Loading