mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-27 08:10:35 -05:00
16 lines
327 B
Go
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()),
|
|
)
|
|
}
|