Files
opencloud/pkg/shared/memlimit.go
Ralf Haferkamp e07f0154bb Rebrand pkg
2025-01-20 10:59:08 +01:00

16 lines
327 B
Go

package shared
import (
"log/slog"
"github.com/KimMachineGun/automemlimit/memlimit"
)
// we init the memlimit here to include it for OpenCloud als well as individual service binaries
func init() {
slog.SetLogLoggerLevel(slog.LevelError)
_, _ = memlimit.SetGoMemLimitWithOpts(
memlimit.WithLogger(slog.Default()),
)
}