other: 日志字段调用由 zap.Field 更改为 log.Field

This commit is contained in:
kercylan98
2023-07-15 09:36:24 +08:00
parent 25ed712fc9
commit 8e2b4ebc89
15 changed files with 80 additions and 89 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ import (
jsonIter "github.com/json-iterator/go"
"github.com/kercylan98/minotaur/utils/log"
"github.com/kercylan98/minotaur/utils/timer"
"go.uber.org/zap"
"os"
"path/filepath"
"sync"
@@ -51,7 +50,7 @@ func Load() {
return err
}
if err = json.Unmarshal(bytes, &config); err == nil && isInit {
log.Info("Config", zap.String("Name", filename), zap.Bool("LoadSuccess", true))
log.Info("Config", log.String("Name", filename), log.Bool("LoadSuccess", true))
}
return err
})