From 1ca5c62e25d00e054a8e4bf4d8a06c3e69cae85f Mon Sep 17 00:00:00 2001 From: Daenney Date: Fri, 17 Feb 2023 12:31:34 +0100 Subject: [PATCH] [bug] maxprocs set logger to nil (#1512) We want to set the Logger to nil, but that means we still need to wrap it in `maxprocs.Logger()`. --- cmd/gotosocial/action/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go index 388a88533..d43599b05 100644 --- a/cmd/gotosocial/action/server/server.go +++ b/cmd/gotosocial/action/server/server.go @@ -62,7 +62,7 @@ import ( // Start creates and starts a gotosocial server var Start action.GTSAction = func(ctx context.Context) error { - _, err := maxprocs.Set(nil) + _, err := maxprocs.Set(maxprocs.Logger(nil)) if err != nil { return fmt.Errorf("failed to set CPU limits from cgroup: %s", err) }