Skip to content

Commit

Permalink
Merge pull request #200 from RadekManak/cr-log
Browse files Browse the repository at this point in the history
OCPBUGS-17090: Set logger for controller runtime
  • Loading branch information
openshift-merge-robot committed Sep 18, 2023
2 parents 2d66298 + fd22b2f commit 63a396c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func main() {

flagSet := flag.NewFlagSet("cluster-machine-approver", flag.ExitOnError)

// Set logger for controller-runtime
control.SetLogger(klog.NewKlogr())

klog.InitFlags(nil)
flagSet.AddGoFlagSet(goflag.CommandLine)

Expand Down

0 comments on commit 63a396c

Please sign in to comment.