mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-26 05:36:38 +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
|
// Start creates and starts a gotosocial server
|
||||||
var Start action.GTSAction = func(ctx context.Context) error {
|
var Start action.GTSAction = func(ctx context.Context) error {
|
||||||
_, err := maxprocs.Set(nil)
|
_, err := maxprocs.Set(maxprocs.Logger(nil))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to set CPU limits from cgroup: %s", err)
|
return fmt.Errorf("failed to set CPU limits from cgroup: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue