1.新增服务和Global配置接口,支持通过结构体解析

2.优化日志
This commit is contained in:
boyce
2024-05-15 10:06:50 +08:00
parent 78cc33c84e
commit 90d54bf3e2
3 changed files with 41 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ func Init() {
for _,s := range setupServiceList {
err := s.OnInit()
if err != nil {
log.SError("Failed to initialize "+s.GetName()+" service:"+err.Error())
log.Error("Failed to initialize "+s.GetName()+" service",log.ErrorAttr("err",err))
os.Exit(1)
}
}