Skip to content

Commit 19bceca

Browse files
committed
fix zap logger
1 parent ce78889 commit 19bceca

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/olm/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
var log = ctrl.Log.WithName("manager")
1414

1515
func Manager(ctx context.Context, debug bool) (ctrl.Manager, error) {
16-
ctrl.SetLogger(zap.Logger(debug))
16+
ctrl.SetLogger(zap.New(zap.UseDevMode(debug)))
1717
setupLog := log.WithName("setup").V(4)
1818

1919
// Setup a Manager

pkg/controller/operators/suite_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ func TestAPIs(t *testing.T) {
8383
}
8484

8585
var _ = BeforeSuite(func() {
86-
logf.SetLogger(zap.LoggerTo(GinkgoWriter, true))
87-
86+
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))
8887
By("bootstrapping test environment")
8988
useExisting := false
9089
testEnv = &envtest.Environment{

0 commit comments

Comments
 (0)