mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00:00
[bugfix] warn on maxprocs error instead of failing (#1678)
* [bugfix] warn on maxprocs error instead of failing * info instead of warn
This commit is contained in:
parent
e46323c207
commit
fb41d2d48f
1 changed files with 2 additions and 3 deletions
|
@ -59,9 +59,8 @@
|
||||||
|
|
||||||
// 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(maxprocs.Logger(nil))
|
if _, err := maxprocs.Set(maxprocs.Logger(nil)); err != nil {
|
||||||
if err != nil {
|
log.Infof(ctx, "could not set CPU limits from cgroup: %s", err)
|
||||||
return fmt.Errorf("failed to set CPU limits from cgroup: %s", err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var state state.State
|
var state state.State
|
||||||
|
|
Loading…
Reference in a new issue