Skip to content

[QUERY] Oauth logging noise #41569

Description

@anusudarsan

Query/Question

This is a follow up request to #39063 . We are seeing a lot of logging from the
https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core/src/main/java/com/azure/core/implementation/AccessTokenCache.java#L231 AccessTokenCache refresh. Would it make sense to reduce this noise similar to the fix in #39459 ?

2024-08-20T09:58:14.7529507Z 2024-08-20T03:58:14.738-0600	INFO	ForkJoinPool.commonPool-worker-1	com.azure.core.implementation.AccessTokenCache	{"az.sdk.message":"Acquired a new access token."}
2024-08-20T09:58:14.8529761Z 2024-08-20T03:58:14.825-0600	INFO	ForkJoinPool.commonPool-worker-1	com.azure.core.implementation.AccessTokenCache	{"az.sdk.message":"Acquired a new access token."}
2024-08-20T09:58:15.0533230Z 2024-08-20T03:58:14.980-0600	INFO	ForkJoinPool.commonPool-worker-1	com.azure.core.implementation.AccessTokenCache	{"az.sdk.message":"Acquired a new access token."}
2024-08-20T09:58:15.1534094Z 2024-08-20T03:58:15.058-0600	INFO	ForkJoinPool.commonPool-worker-1	com.azure.core.implementation.AccessTokenCache	{"az.sdk.message":"Acquired a new access token."}
2024-08-20T09:58:15.7543948Z 2024-08-20T03:58:15.653-0600	INFO	ForkJoinPool.commonPool-worker-1	com.azure.core.implementation.AccessTokenCache	{"az.sdk.message":"Acquired a new access token."}
2024-08-20T09:58:15.8542164Z 2024-08-20T03:58:15.807-0600	INFO	ForkJoinPool.commonPool-worker-1	com.azure.core.implementation.AccessTokenCache	{"az.sdk.message":"Acquired a new access token."}
2024-08-20T09:58:15.9543711Z 2024-08-20T03:58:15.880-0600	INFO	ForkJoinPool.commonPool-worker-1	com.azure.core.implementation.AccessTokenCache	{"az.sdk.message":"Acquired a new access token."}

Setup (please complete the following information if applicable):

This happens while authenticating with OAuth in the CI tests.

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Query Added
  • Setup information Added

Metadata

Metadata

Assignees

Labels

Azure.Identitycustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions