From 095e1db8018292528b18dd95878f68cfb792d2d0 Mon Sep 17 00:00:00 2001 From: Itay Brandes Date: Tue, 4 May 2021 19:17:30 +0300 Subject: [PATCH] fix: SHOW_DEBUG_ON_ERROR environment variable not working (Fixes #1178) --- CHANGELOG.md | 2 ++ pkg/apis/options/app.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcf4f54..0d9e7e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/pkg/apis/options/app.go b/pkg/apis/options/app.go index 4d6353b..fbb2303 100644 --- a/pkg/apis/options/app.go +++ b/pkg/apis/options/app.go @@ -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 {