Commit 98d1da6f by RedwindA

fix: 调整初始化顺序以避免写入日志失败

parent 98696526
...@@ -168,11 +168,11 @@ func InitResources() error { ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment