You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/04/28 14:00:42 UTC
[camel-k] 01/03: fix(operator): do not panic if cannot set GOMAXPROCS
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit cbda4380498b8613f3eaa1c94b59ca1d31cfbcd7
Author: Pasquale Congiusti <pa...@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 8e0028020..862043d5c 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()