Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#3811 from M0NsTeRRR/master
Browse files Browse the repository at this point in the history
fix: pdns logging
k8s-ci-robot authored Aug 5, 2023
2 parents 72a36a6 + 60102ed commit 59ba0f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions provider/pdns/pdns.go
Original file line number Diff line number Diff line change
@@ -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
@@ -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)
@@ -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
}

0 comments on commit 59ba0f5

Please sign in to comment.