Initial QSfera import
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package shared
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
|
||||
"github.com/KimMachineGun/automemlimit/memlimit"
|
||||
)
|
||||
|
||||
// we init the memlimit here to include it for КуСфера as well as individual service binaries
|
||||
func init() {
|
||||
slog.SetLogLoggerLevel(slog.LevelError)
|
||||
_, _ = memlimit.SetGoMemLimitWithOpts(
|
||||
memlimit.WithLogger(slog.Default()),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user