improve: log format in global config init phase

This commit is contained in:
Mmx
2024-10-14 11:58:13 +08:00
parent 5b673af27b
commit 746b146a04
2 changed files with 18 additions and 12 deletions

View File

@@ -5,7 +5,6 @@ import (
"github.com/Mmx233/BitSrunLoginGo/internal/config/keys"
"github.com/Mmx233/BitSrunLoginGo/pkg/srun"
"github.com/Mmx233/tool"
log "github.com/sirupsen/logrus"
"os"
"time"
)
@@ -25,7 +24,9 @@ var (
)
func init() {
logger := log.New().WithField(keys.LogComponent, "init")
initLogPre()
logger := Logger.WithField(keys.LogComponent, "init")
reader := newReaderFromPath(flags.Path)
// 生成配置文件
@@ -67,6 +68,6 @@ func init() {
Meta.Acid = flags.Acid
}
initLog()
initLogFinal()
initBackoff()
}