Provider Auth: use base logger if available (#26138)
This commit is contained in:
parent
6ecf041d9a
commit
31bb62148d
14 changed files with 45 additions and 33 deletions
|
|
@ -92,7 +92,7 @@ func NewOAuth(ctx context.Context, name, device string, oc *oauth2.Config, opts
|
|||
return instance, nil
|
||||
}
|
||||
|
||||
log := util.NewLogger("oauth-" + hash)
|
||||
log := util.ContextLoggerWithDefault(ctx, util.NewLogger("oauth-"+hash))
|
||||
|
||||
if client, ok := ctx.Value(oauth2.HTTPClient).(*http.Client); client == nil || !ok {
|
||||
ctx = context.WithValue(ctx, oauth2.HTTPClient, request.NewClient(log))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue