-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUERY] Downgrade log level for MsalClientException #38209
Comments
@billwert could you follow up since you investigated the linked issue? |
I started experiencing the same issue after upgrading "azure-security-keyvault-secrets" from "4.6.1" to "4.7.3". No other changes were made. Application also operates as expected (so far). |
Thanks for the reports folks. We're looking into how we can improve this logging experience. |
Update: |
@petarchou Can you upgrade to Azure Identity 1.11.2 and let us know if this improves your experience? We've moved this log from |
Hi @felix-ebert. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Hi @felix-ebert, since you haven’t asked that we |
Query/Question
We encountered the following log statement:
ERROR [Timer-0] c.a.i.i.IdentityClient - com.microsoft.aad.msal4j.MsalClientException: Token not found in the cache.
However, despite this error being logged, the application operates as expected.
Can this exception be caught properly and the log level downgraded?
Why is this not a Bug or a feature Request?
A similar bug #27585 had been closed stating the error can be ignored.
Stack Trace
Setup
Current workaround
Disable the log statement via Logback:
<logger name="com.azure.identity.implementation.IdentityClient" level="off" />
Possible solution
Catch the exception properly in IdentitySyncClient.java#L189 and downgrade the log level.
Additional context
There is also closed bug #669 inside the used microsoft-authentication-library-for-java dependency, which is maybe related. Nevertheless, the used version 5.8.0 should already include the fix.
The text was updated successfully, but these errors were encountered: