Skip to content

Commit

Permalink
Merge pull request #56 from appuio/fix/controller-log-options
Browse files Browse the repository at this point in the history
Correctly bind zap flags to controller Cobra command
  • Loading branch information
simu authored Mar 29, 2022
2 parents 5c46014 + 7901f3e commit 929b898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func ControllerCommand() *cobra.Command {

zapfs := flag.NewFlagSet("zap", flag.ExitOnError)
opts := zap.Options{}
opts.BindFlags(flag.CommandLine)
opts.BindFlags(zapfs)
cmd.Flags().AddGoFlagSet(zapfs)

metricsAddr := cmd.Flags().String("metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
Expand Down

0 comments on commit 929b898

Please sign in to comment.