mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-22 18:22:11 +00:00
[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
|
@ -62,7 +62,7 @@
|
|||
|
||||
// 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