Skip to content

Commit 5dc4c97

Browse files
Merge pull request openshift#8641 from vr4manta/OCPBUGS-35547
OCPBUGS-35547: Configured logger for controller-runtime
2 parents 29fd804 + b4caec7 commit 5dc4c97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/openshift-install/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
terminal "golang.org/x/term"
1414
"k8s.io/klog"
1515
klogv2 "k8s.io/klog/v2"
16+
ctrl "sigs.k8s.io/controller-runtime"
1617
"sigs.k8s.io/controller-runtime/pkg/manager/signals"
1718

1819
"github.com/openshift/installer/cmd/openshift-install/command"
@@ -33,6 +34,8 @@ func main() {
3334
fsv2.Set("stderrthreshold", "4")
3435
klogv2.SetOutput(io.Discard)
3536

37+
ctrl.SetLogger(klogv2.Background())
38+
3639
installerMain()
3740
}
3841

0 commit comments

Comments
 (0)