forked from mirrors/gotosocial
[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()`.
This commit is contained in:
parent
68e6d08c76
commit
1ca5c62e25
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue