Skip to content

Commit

Permalink
fix zap logger
Browse files Browse the repository at this point in the history
  • Loading branch information
awgreene committed Dec 16, 2020
1 parent bf8d84a commit a448cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/olm/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
var log = ctrl.Log.WithName("manager")

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

// Setup a Manager
Expand Down
3 changes: 1 addition & 2 deletions pkg/controller/operators/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ func TestAPIs(t *testing.T) {
}

var _ = BeforeSuite(func() {
logf.SetLogger(zap.LoggerTo(GinkgoWriter, true))

logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))
By("bootstrapping test environment")
useExisting := false
testEnv = &envtest.Environment{
Expand Down

0 comments on commit a448cdf

Please sign in to comment.