Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Fix SyncReconciler passing reflect.Type as key to logger #80

Merged
merged 1 commit into from
Feb 1, 2021
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
2 changes: 1 addition & 1 deletion reconcilers/reconcilers.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (r *SyncReconciler) validate(ctx context.Context) error {
func (r *SyncReconciler) Reconcile(ctx context.Context, parent client.Object) (ctrl.Result, error) {
result, err := r.sync(ctx, parent)
if err != nil {
r.Log.Error(err, "unable to sync", reflect.TypeOf(parent), parent)
r.Log.Error(err, "unable to sync", typeName(parent), parent)
return ctrl.Result{}, err
}

Expand Down