Skip to content

Commit

Permalink
adding a log line when materializing creds
Browse files Browse the repository at this point in the history
  • Loading branch information
pmahindrakar-oss committed May 20, 2024
1 parent 319c799 commit 513b12b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flyteidl/clients/go/admin/auth_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ func NewAuthInterceptor(cfg *Config, tokenCache cache.TokenCache, credentialsFut
logger.Debugf(ctx, "Request failed due to [%v]. Attempting to establish an authenticated connection and trying again.", st.Code())
newErr := MaterializeCredentials(ctx, cfg, tokenCache, credentialsFuture, proxyCredentialsFuture)
if newErr != nil {
return fmt.Errorf("authentication error! Original Error: %v, Auth Error: %w", err, newErr)
errString := fmt.Sprintf("authentication error! Original Error: %v, Auth Error: %v", err, newErr)
logger.Errorf(ctx, errString)
return fmt.Errorf(errString)
}

tokenCache.CondBroadcast()
Expand Down

0 comments on commit 513b12b

Please sign in to comment.