From 6de0b8461fd564f5c000219148cd56ba0500e2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Mon, 19 Jun 2023 18:27:00 +0200 Subject: [PATCH] fix: make configuring max procs not exit in case of error (#7588) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: make configuring max procs not exit Signed-off-by: Charles-Edouard Brétéché * fix Signed-off-by: Charles-Edouard Brétéché --------- Signed-off-by: Charles-Edouard Brétéché --- cmd/internal/maxprocs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/internal/maxprocs.go b/cmd/internal/maxprocs.go index b8e203bcd0..e489c52740 100644 --- a/cmd/internal/maxprocs.go +++ b/cmd/internal/maxprocs.go @@ -17,6 +17,8 @@ func setupMaxProcs(logger logr.Logger) func() { }, ), ) - checkError(logger, err, "failed to configure maxprocs") + if err != nil { + logger.Error(err, "failed to configure maxprocs") + } return undo }