Skip to content

Commit

Permalink
debug log level, remove unused query params
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzu committed Dec 29, 2024
1 parent 7a25b46 commit d8fe816
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/issuer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand All @@ -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
}
Expand Down

0 comments on commit d8fe816

Please sign in to comment.