Skip to content

Commit

Permalink
Removing debug information
Browse files Browse the repository at this point in the history
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
  • Loading branch information
nmaupu and mloiseleur authored Dec 21, 2024
1 parent 95d9c3c commit 4fc9519
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions provider/ovh/ovh.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,6 @@ func (p *OVHProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) (
allChanges = append(allChanges, changesUpdateOld...)
allChanges = append(allChanges, changesDelete...)

// Changes debug
if log.IsLevelEnabled(log.DebugLevel) {
debugF := func(changeType string, changes []ovhChange) {
for _, c := range changes {
log.Debugf("OVH: change type %s - %s", changeType, c.String())
}
}
debugF("OVH: (ovhCreate) Create", changesCreate)
debugF("OVH: (ovhCreate) UpdateNew", changesUpdateNew)
debugF("OVH: (ovhDelete) UpdateOld", changesUpdateOld)
debugF("OVH: (ovhDelete) Delete", changesDelete)
}

log.Infof("OVH: %d changes will be done", len(allChanges))

Expand Down

0 comments on commit 4fc9519

Please sign in to comment.