Skip to content

Commit

Permalink
Merge pull request #505 from iamniting/logger
Browse files Browse the repository at this point in the history
test: fix logger issue
  • Loading branch information
openshift-merge-bot[bot] authored Nov 14, 2024
2 parents e891579 + 8279760 commit 7f54b8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/deploymanager/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"k8s.io/client-go/tools/clientcmd"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
)

var (
Expand Down Expand Up @@ -53,6 +54,8 @@ func NewDeployManager() (*DeployManager, error) {
return nil, err
}

log.SetLogger(zap.New(zap.UseDevMode(true)))

return &DeployManager{
Client: client,
Log: log.Log.WithName("DeployManager"),
Expand Down

0 comments on commit 7f54b8d

Please sign in to comment.