fix: 调整初始化顺序以避免写入日志失败
This commit is contained in:
4
main.go
4
main.go
@@ -168,11 +168,11 @@ func InitResources() error {
|
|||||||
common.SysLog("No .env file found, using default environment variables. If needed, please create a .env file and set the relevant variables.")
|
common.SysLog("No .env file found, using default environment variables. If needed, please create a .env file and set the relevant variables.")
|
||||||
}
|
}
|
||||||
|
|
||||||
common.SetupLogger()
|
|
||||||
|
|
||||||
// 加载环境变量
|
// 加载环境变量
|
||||||
common.InitEnv()
|
common.InitEnv()
|
||||||
|
|
||||||
|
common.SetupLogger()
|
||||||
|
|
||||||
// Initialize model settings
|
// Initialize model settings
|
||||||
ratio_setting.InitRatioSettings()
|
ratio_setting.InitRatioSettings()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user