This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch release-1.12.x in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-1.12.x by this push: new 30888bd17 fix(operator): do not panic if cannot set GOMAXPROCS 30888bd17 is described below commit 30888bd176a22b16cdf80e183bc6be41e42d630b Author: Pasquale Congiusti <pasquale.congiu...@gmail.com> AuthorDate: Fri Apr 28 12:24:31 2023 +0200 fix(operator): do not panic if cannot set GOMAXPROCS Closes #4299 --- pkg/cmd/operator/operator.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/operator/operator.go b/pkg/cmd/operator/operator.go index 995d916be..2280b75e4 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()