perf ⚡ 优化配置文件加载
This commit is contained in:
1 parent
b8ab38308d
commit
f35a808975
4 files changed
+5
-10
No files matched your search
@@ -49,7 +49,7 @@ func run() {
|
||||
if !generate {
|
||||
fmt.Println(`start init`)
|
||||
//1. 读取配置
|
||||
config.Setup(file.NewSource, file.WithPath(configYml))
|
||||
config.Setup(file.NewSource(file.WithPath(configYml)))
|
||||
//2. 设置日志
|
||||
sdk.Runtime.SetLogger(
|
||||
logger.SetupLogger(
|
||||
|
||||
Reference in new issue
Block a user