1.修复了config文件解析错误无法提示的问题

2.改成了goland支持的语法
This commit is contained in:
charlestamz
2022-05-31 17:27:48 +08:00
parent 8ba12de307
commit 524a68cfbe
9 changed files with 65 additions and 57 deletions

View File

@@ -60,6 +60,8 @@ func Run(ctx context.Context, configFile string) (err error) {
Engine.RawConfig = cg.GetChild("global")
//将配置信息同步到结构体
Engine.RawConfig.Unmarshal(config.Global)
} else {
log.Error("parsing yml error:", err)
}
}
Engine.Logger = log.With(zap.Bool("engine", true))