From dd47b45addff123fce8acff549a5e5f6fd3b8b78 Mon Sep 17 00:00:00 2001 From: pmahindrakar-oss Date: Mon, 20 May 2024 10:29:33 -0700 Subject: [PATCH] adding a log line when materializing creds Signed-off-by: pmahindrakar-oss --- flyteidl/clients/go/admin/auth_interceptor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flyteidl/clients/go/admin/auth_interceptor.go b/flyteidl/clients/go/admin/auth_interceptor.go index 267e195ecd..4cebf6440f 100644 --- a/flyteidl/clients/go/admin/auth_interceptor.go +++ b/flyteidl/clients/go/admin/auth_interceptor.go @@ -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()