fix: SHOW_DEBUG_ON_ERROR environment variable not working
(Fixes #1178)
commit095e1db8018292528b18dd95878f68cfb792d2d0
authorItay Brandes <Brandes.Itay@gmail.com>
dateTue 4 May 2021, 19:17 (5 years ago)
parent88122f6
CHANGELOG.md+2
@@ -8,6 +8,8 @@
88
99## Changes since v7.1.3
1010
11+- [#1181](https://github.com/oauth2-proxy/oauth2-proxy/pull/1181) Fix incorrect `cfg` name in show-debug-on-error flag (@iTaybb)
12+
1113# V7.1.3
1214
1315## Release Highlights
pkg/apis/options/app.go+1−1
@@ -33,7 +33,7 @@ type Templates struct {
3333 // It is not advised to use this in production as errors may contain sensitive
3434 // information.
3535 // Use only for diagnosing backend errors.
36− Debug bool `flag:"show-debug-on-error" cfg:"show-debug-on-error"`
36+ Debug bool `flag:"show-debug-on-error" cfg:"show_debug_on_error"`
3737}
3838
3939func templatesFlagSet() *pflag.FlagSet {