fix: fix 5538 change will cause the console to be displayed on the same line as the next output program (#5576)

This commit is contained in:
lengpucheng 2024-02-02 21:04:35 +08:00 committed by GitHub
parent 979c076024
commit 2dafe7709a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,7 @@ import (
"bytes" "bytes"
"context" "context"
"errors" "errors"
"fmt"
"io" "io"
"os" "os"
"os/user" "os/user"
@ -28,8 +29,6 @@ import (
"sync" "sync"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/beego/beego/v2/core/logs"
) )
var ( var (
@ -519,7 +518,7 @@ func init() {
err := InitGlobalInstance("ini", "conf/app.conf") err := InitGlobalInstance("ini", "conf/app.conf")
if err != nil { 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)
} }
} }