Skip to content

Commit

Permalink
moving flag.Parse() from init to main function(s) fixes #309 (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
phaus committed Mar 14, 2022
1 parent 8087be7 commit b418696
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions cmd/proxy/main.go
Expand Up @@ -253,6 +253,7 @@ var (
)

func main() {
flag.Parse()
martian.Init()

p := martian.NewProxy()
Expand Down
1 change: 0 additions & 1 deletion init.go
Expand Up @@ -26,6 +26,5 @@ var (

// Init runs common initialization code for a martian proxy.
func Init() {
flag.Parse()
mlog.SetLevel(*level)
}

0 comments on commit b418696

Please sign in to comment.