Skip to content

Commit fadf15e

Browse files
authored
fix(logging): do not log nil error in run controller (#781)
1 parent 21e1cdc commit fadf15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controllers/terraformrun/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
113113
}
114114
if !bundleOk {
115115
r.Recorder.Event(run, corev1.EventTypeWarning, "Reconciliation", fmt.Sprintf("Bundle for revision %s not found in datastore", run.Spec.Layer.Revision))
116-
log.Errorf("bundle for revision %s not found in datastore: %s", run.Spec.Layer.Revision, err)
116+
log.Errorf("bundle for revision %s not found in datastore", run.Spec.Layer.Revision)
117117
return ctrl.Result{RequeueAfter: r.Config.Controller.Timers.OnError}, nil
118118
}
119119

0 commit comments

Comments
 (0)