From 71e38d232e70bce84a63ff2cf26fce6566edb6db Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Mon, 3 May 2021 09:13:18 -0700 Subject: [PATCH] login.go discards logs by default Signed-off-by: Margo Crawford --- pkg/oidcclient/login.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/oidcclient/login.go b/pkg/oidcclient/login.go index 142b6779..14ca72d3 100644 --- a/pkg/oidcclient/login.go +++ b/pkg/oidcclient/login.go @@ -196,6 +196,7 @@ func Login(issuer string, clientID string, opts ...Option) (*oidctypes.Token, er cache: &nopCache{}, callbackPath: "/callback", ctx: context.Background(), + logger: logr.Discard(), // discard logs unless a logger is specified callbacks: make(chan callbackResult), httpClient: http.DefaultClient,