Skip to content

Commit 061a2c1

Browse files
committed
mv InitLog to Start
1 parent 2ece5ee commit 061a2c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/gmc/gmc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ func init() {
4545
flag.BoolVar(&help, "help", false, "this help")
4646
flag.StringVar(&auth, "auth", "", "http basic auth: 'username,password'")
4747
flag.Parse()
48-
49-
InitLog()
5048
}
5149

5250
func InitLog() {
@@ -90,6 +88,7 @@ func Start() {
9088
os.Exit(0)
9189
}
9290

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

0 commit comments

Comments
 (0)