diff --git a/pkg/cmd/operator/operator.go b/pkg/cmd/operator/operator.go index 03a89001d9..ec0ee71ae4 100644 --- a/pkg/cmd/operator/operator.go +++ b/pkg/cmd/operator/operator.go @@ -126,7 +126,9 @@ func Run(healthPort, monitoringPort int32, leaderElection bool, leaderElectionID klog.SetLogger(log.AsLogger()) _, err := maxprocs.Set(maxprocs.Logger(func(f string, a ...interface{}) { log.Info(fmt.Sprintf(f, a)) })) - exitOnError(err, "failed to set GOMAXPROCS from cgroups") + if err != nil { + log.Error(err, "failed to set GOMAXPROCS from cgroups") + } printVersion()