1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-01-20 05:09:41 +02:00

fix: SHOW_DEBUG_ON_ERROR environment variable not working

(Fixes #1178)
This commit is contained in:
Itay Brandes 2021-05-04 19:17:30 +03:00
parent 88122f641d
commit 095e1db801
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 {