summaryrefslogtreecommitdiff
path: root/internal/api/model/filterv2.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2024-06-13 19:02:48 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-13 19:02:48 +0200
commit3c86bd890c54ac6f54f07a5d7c1d3f8d5e399641 (patch)
tree88be0c6f2be82b4e5f0e7773bd6f1c55b04a99a1 /internal/api/model/filterv2.go
parent[docs] Add optional instructions for replicating SQLite for disaster recovery... (diff)
downloadgotosocial-3c86bd890c54ac6f54f07a5d7c1d3f8d5e399641.tar.xz
[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>
Diffstat (limited to 'internal/api/model/filterv2.go')
0 files changed, 0 insertions, 0 deletions