Skip to content

[QUERY] OAuth Logging noise #39063

Description

@findinpath

Query/Question

I consider this to be rather log noise in the CI tests and am wondering whether there can be done something about it in the azure-sdk-for-java library:

2024-03-03T18:25:18.749-0600	INFO	Thread-138	com.microsoft.aad.msal4j.AcquireTokenSilentSupplier	Returning *** from cache
2024-03-03T18:25:18.749-0600	INFO	Thread-138	com.azure.identity.ClientSecretCredential	Azure Identity => getToken() result for scopes [https://storage.azure.com/.default]: SUCCESS
2024-03-03T18:25:18.750-0600	INFO	Thread-138	com.azure.core.implementation.AccessTokenCache	{"az.sdk.message":"Acquired a new access ***."}
2024-03-03T18:25:18.778-0600	INFO	Thread-139	com.microsoft.aad.msal4j.AcquireTokenSilentSupplier	Returning *** from cache

logger.log(LogLevel.INFORMATIONAL, () -> String.format(
"Azure Identity => getToken() result for scopes [%s]: SUCCESS",
CoreUtils.stringJoin(", ", context.getScopes())));

The token is retrieved from the cache each time, but we see this log information over and over in CI which can potentially hide some other logs worthy of attention.

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.IdentityClientThis issue points to a problem in the data-plane of the library.customer-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