From 2dafe7709a22a3f530e04bdd9c07e7822715146e Mon Sep 17 00:00:00 2001 From: lengpucheng Date: Fri, 2 Feb 2024 21:04:35 +0800 Subject: [PATCH] fix: fix 5538 change will cause the console to be displayed on the same line as the next output program (#5576) --- core/config/ini.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/config/ini.go b/core/config/ini.go index 9f808d2c..791fb59b 100644 --- a/core/config/ini.go +++ b/core/config/ini.go @@ -19,6 +19,7 @@ import ( "bytes" "context" "errors" + "fmt" "io" "os" "os/user" @@ -28,8 +29,6 @@ import ( "sync" "github.com/mitchellh/mapstructure" - - "github.com/beego/beego/v2/core/logs" ) var ( @@ -519,7 +518,7 @@ func init() { err := InitGlobalInstance("ini", "conf/app.conf") if err != nil { - logs.Debug("init global config instance failed. If you do not use this, just ignore it. ", err) + _, _ = fmt.Fprintln(os.Stderr, "init global config instance failed. If you do not use this, just ignore it. ", err) } }