Skip to content

Commit

Permalink
[chore] Silence maxprocs logging (#1402)
Browse files Browse the repository at this point in the history
This switches the logger to Debug. By default the library logs things
internally despite returning errors. Due to the way we had it hooked up
this resulted in scary error level logs being emitted for innocuous
errors. Now those errors will only be visible in debug mode.

Fixes: #1398
Relates to: #1336
  • Loading branch information
daenney authored Jan 31, 2023
1 parent dc766f9 commit eccb380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gotosocial/action/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import (

// Start creates and starts a gotosocial server
var Start action.GTSAction = func(ctx context.Context) error {
_, err := maxprocs.Set(maxprocs.Logger(log.Errorf))
_, err := maxprocs.Set(maxprocs.Logger(log.Debugf))
if err != nil {
return fmt.Errorf("failed to set CPU limits from cgroup: %s", err)
}
Expand Down

0 comments on commit eccb380

Please sign in to comment.