This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch release-1.10.x in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-1.10.x by this push: new edd3a2a59 fix(operator): do not panic if cannot set GOMAXPROCS edd3a2a59 is described below commit edd3a2a59797e4a72f179cf59b869ed62d2fbd23 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 03a89001d..ec0ee71ae 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()