Skip to content

Commit

Permalink
restore original klog looger in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalucki committed Jul 11, 2024
1 parent a5d4987 commit d524ab3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/controller/lifecycle/add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog/v2"
"k8s.io/klog/v2/textlogger"
"k8s.io/klog/v2/klogr"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

gardencorev1beta1 "github.com/gardener/gardener/pkg/apis/core/v1beta1"
Expand All @@ -39,8 +39,7 @@ var _ = Describe("ConfigMapToAllExtensionMapper tests", func() {
buffer = bytes.NewBuffer(nil)
klog.SetOutput(buffer)
klog.LogToStderr(false)
//log = klogr.New()
log = textlogger.NewLogger(nil)
log = klogr.New()

mockCtrl = gomock.NewController(GinkgoT())
reader = mocks.NewMockReader(mockCtrl)
Expand Down

0 comments on commit d524ab3

Please sign in to comment.