Skip to content

Commit

Permalink
Merge pull request #1911 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1907-to-release-0.12

🐛 don't override global log in builder
  • Loading branch information
k8s-ci-robot committed May 19, 2022
2 parents 3966c67 + 19f8d99 commit 1efdbd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/builder/controller.go
Expand Up @@ -309,7 +309,7 @@ func (blder *Builder) doController(r reconcile.Reconciler) error {

// Setup the logger.
if ctrlOptions.LogConstructor == nil {
log = blder.mgr.GetLogger().WithValues(
log := blder.mgr.GetLogger().WithValues(
"controller", controllerName,
"controllerGroup", gvk.Group,
"controllerKind", gvk.Kind,
Expand Down

0 comments on commit 1efdbd7

Please sign in to comment.