use DontStartLogAuto to disable log auto stop in ssgo/s

This commit is contained in:
Star 2025-12-03 11:02:15 +08:00
parent e64727d2ef
commit 069a4b95c2
2 changed files with 2 additions and 1 deletions

2
go.mod
View File

@ -16,7 +16,7 @@ require (
github.com/ssgo/httpclient v1.7.8
github.com/ssgo/log v1.7.9
github.com/ssgo/redis v1.7.8
github.com/ssgo/s v1.7.24
github.com/ssgo/s v1.7.25
github.com/ssgo/standard v1.7.7
github.com/ssgo/u v1.7.23
)

View File

@ -238,6 +238,7 @@ func initConfig(opt *gojs.Obj, logger *log.Logger, vm *goja.Runtime) {
func init() {
s.Config.KeepKeyCase = true
s.DontStartLogAuto = true
obj := map[string]any{
"config": func(argsIn goja.FunctionCall, vm *goja.Runtime) goja.Value {
args := gojs.MakeArgs(&argsIn, vm)