Skip to content

Commit

Permalink
fix: SHOW_DEBUG_ON_ERROR environment variable not working
Browse files Browse the repository at this point in the history
  • Loading branch information
iTaybb committed May 4, 2021
1 parent 88122f6 commit 095e1db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

## Changes since v7.1.3

- [#1181](https://github.com/oauth2-proxy/oauth2-proxy/pull/1181) Fix incorrect `cfg` name in show-debug-on-error flag (@iTaybb)

# V7.1.3

## Release Highlights
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/options/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Templates struct {
// It is not advised to use this in production as errors may contain sensitive
// information.
// Use only for diagnosing backend errors.
Debug bool `flag:"show-debug-on-error" cfg:"show-debug-on-error"`
Debug bool `flag:"show-debug-on-error" cfg:"show_debug_on_error"`
}

func templatesFlagSet() *pflag.FlagSet {
Expand Down

0 comments on commit 095e1db

Please sign in to comment.