Skip to content

Commit 0aac074

Browse files
committed
don't log name and namespace twice
Signed-off-by: Tim Ramlot <[email protected]>
1 parent 717b32a commit 0aac074

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/builder/controller.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"github.com/go-logr/logr"
2626
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2727
"k8s.io/apimachinery/pkg/runtime/schema"
28-
"k8s.io/klog/v2"
2928

3029
"sigs.k8s.io/controller-runtime/pkg/client"
3130
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
@@ -445,9 +444,6 @@ func (blder *TypedBuilder[request]) doController(r reconcile.TypedReconciler[req
445444
log := log
446445

447446
if req, ok := any(in).(*reconcile.Request); ok && req != nil {
448-
if hasGVK {
449-
log = log.WithValues(gvk.Kind, klog.KRef(req.Namespace, req.Name))
450-
}
451447
log = log.WithValues(
452448
"namespace", req.Namespace, "name", req.Name,
453449
)

0 commit comments

Comments
 (0)