From 54e967e42053765da5cd2e9fe79a36a7352aad0a Mon Sep 17 00:00:00 2001 From: Isha Tarte Date: Thu, 5 Sep 2024 15:01:47 -0500 Subject: [PATCH] Change log to debug for exceptions while fetching Identity token (#1288) --- .../cloud/bigquery/connector/common/IdentityTokenSupplier.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/IdentityTokenSupplier.java b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/IdentityTokenSupplier.java index e274d7156..b9499b0a1 100644 --- a/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/IdentityTokenSupplier.java +++ b/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/IdentityTokenSupplier.java @@ -29,7 +29,8 @@ public static Optional fetchIdentityToken(String audience) { return Optional.ofNullable(idTokenCredentials.refreshAccessToken().getTokenValue()); } catch (IOException | IllegalArgumentException ex) { - log.info("Unable to obtain identity token", ex); + log.info("Unable to obtain identity token"); + log.debug("Exception while fetching identity token", ex); } return Optional.empty(); }