Skip to content

Commit

Permalink
fixup! Fix broken kind logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Jul 13, 2022
1 parent a02d631 commit bb36890
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/builder/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,11 @@ func (blder *Builder) doController(r reconcile.Reconciler) error {
"controllerKind", gvk.Kind,
)

kind := gvk.Kind

ctrlOptions.LogConstructor = func(req *reconcile.Request) logr.Logger {
log := log
if req != nil {
log = log.WithValues(
kind, klog.KRef(req.Namespace, req.Name),
gvk.Kind, klog.KRef(req.Namespace, req.Name),
"namespace", req.Namespace, "name", req.Name,
)
}
Expand Down

0 comments on commit bb36890

Please sign in to comment.