GoToSocial/cmd/gotosocial
Daenney 3c86bd890c
[chore] Silence memlimit package (#3002)
The memlimit package started to log any error returned by automemlimit.
This updates our implementation to call SetGoMemLimitWithOpts() instead
which uses the same defaults as automemlimit except for being
initialised with a noop logger.

We check the returned error for a particular substring, as when cgroups
isn't available even when running on a Linux system that's not a
problem. If it's anything but that error, we log it at the warning
level so that admins can still diagnose other cgroup related issues.

Fixes #2983

Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2024-06-13 19:02:48 +02:00
..
action [chore] Silence memlimit package (#3002) 2024-06-13 19:02:48 +02:00
admin.go [feature] Add `enable` command to mirror existing `disable` command; update docs (#2792) 2024-04-02 10:29:46 +01:00
common.go [feature] Make log format configurable (#2130) 2023-08-21 19:07:55 +01:00
debug.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
main.go Make GtS reported version SemVer-compatible (#2611) 2024-02-12 11:03:56 +00:00
server.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
testrig.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00