From d8fe816e82d4de2fb1c3f027e0aafae6e82db9a7 Mon Sep 17 00:00:00 2001 From: Tsuzu <8574909+tsuzu@users.noreply.github.com> Date: Mon, 30 Dec 2024 08:08:35 +0900 Subject: [PATCH] debug log level, remove unused query params --- pkg/issuer/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/issuer/config.go b/pkg/issuer/config.go index 4e681fe..ce79d67 100644 --- a/pkg/issuer/config.go +++ b/pkg/issuer/config.go @@ -54,6 +54,9 @@ func ConfigFromEnvs() (Config, error) { config.DstPath = os.Getenv("dex_access_token_file") config.Endpoint = os.Getenv("dex_endpoint") config.BasicAuth = os.Getenv("dex_basic_auth") + config.Values.Del("access_token_file") + config.Values.Del("endpoint") + config.Values.Del("basic_auth") var err error if d := os.Getenv("dex_refresh_before"); d != "" { @@ -65,7 +68,7 @@ func ConfigFromEnvs() (Config, error) { config.RefreshBefore = 1 * time.Hour } - slog.Info("config loaded", "config", config) + slog.Debug("config loaded", "config", config) return config, nil }