GoToSocial/cmd/gotosocial/action
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
..
admin [performance] update storage backend and make use of seek syscall when available (#2924) 2024-05-22 11:46:24 +02:00
debug/config [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
server [chore] Silence memlimit package (#3002) 2024-06-13 19:02:48 +02:00
testrig [chore] little startup tweaks (#2941) 2024-05-30 11:55:57 +02:00
action.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00