Skip to content

Commit

Permalink
mv InitLog to Start
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Dec 19, 2021
1 parent 2ece5ee commit 061a2c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/gmc/gmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ func init() {
flag.BoolVar(&help, "help", false, "this help")
flag.StringVar(&auth, "auth", "", "http basic auth: 'username,password'")
flag.Parse()

InitLog()
}

func InitLog() {
Expand Down Expand Up @@ -90,6 +88,7 @@ func Start() {
os.Exit(0)
}

InitLog() // 初始化日志
config.LoadPlugins() // 如果文件存在,从文件读取gmc config
LoadParamConfig() // 如果参数存在,从参数读取gmc config,并覆盖
config.WritePlugins() // 内存中的gmc config写到文件
Expand Down

0 comments on commit 061a2c1

Please sign in to comment.