summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-02-17 12:31:34 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-17 12:31:34 +0100
commit1ca5c62e25d00e054a8e4bf4d8a06c3e69cae85f (patch)
tree7a1373ad2655d3a23e5144edc968059b0bbad2b8
parent[feature] Add a request ID and include it in logs (#1476) (diff)
downloadgotosocial-1ca5c62e25d00e054a8e4bf4d8a06c3e69cae85f.tar.xz
[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()`.
-rw-r--r--cmd/gotosocial/action/server/server.go2
1 files changed, 1 insertions, 1 deletions
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)
}