From 28c9a2e9d0c87fc6cd5b2f2f4680820b45b5f919 Mon Sep 17 00:00:00 2001 From: yusing Date: Wed, 23 Apr 2025 02:02:17 +0800 Subject: [PATCH] chore(oidc): remove debug logging --- internal/api/v1/auth/oidc.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/api/v1/auth/oidc.go b/internal/api/v1/auth/oidc.go index 10369429..7ef9b741 100644 --- a/internal/api/v1/auth/oidc.go +++ b/internal/api/v1/auth/oidc.go @@ -65,10 +65,6 @@ func NewOIDCProvider(issuerURL, clientID, clientSecret string, allowedUsers, all Msg("failed to parse end session URL") } - logging.Debug(). - Str("issuer", issuerURL). - Str("end_session_endpoint", provider.EndSessionEndpoint()). - Msg("end session URL") return &OIDCProvider{ oauthConfig: &oauth2.Config{ ClientID: clientID, @@ -126,8 +122,6 @@ func optRedirectPostAuth(r *http.Request) oauth2.AuthCodeOption { } func (auth *OIDCProvider) HandleAuth(w http.ResponseWriter, r *http.Request) { - logging.Debug().Str("method", r.Method).Str("path", r.URL.Path).Msg("handle auth") - switch r.Method { case http.MethodHead: w.WriteHeader(http.StatusOK)