-
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
[BUG] Noisy Error Logs in azure-identity #19278
Comments
FYI @g2vinay, @jianghaolu |
Thanks for filing this detailed issue @FishyJoel. We'll include this improvement in an upcoming minor release of azure-identity. Would you be interested in sending a PR with the change? |
@FishyJoel Thank you for reporting this issue. |
@FishyJoel
Let us know if any further issues are seen. |
remove global config (Azure#19278)
remove global config (Azure#19278)
remove global config (Azure#19278)
remove global config (Azure#19278)
remove global config (Azure#19278)
Describe the bug
Unnecessary and noisy error logs from com.azure.identity.implementation.MSIToken class
To Reproduce
Steps to reproduce the behavior:
This issue occurs whenever a date in the format "02/17/2021 17:03:10 +00:00" is passed into the parseDateToEpochSeconds() method.
Code Snippet
MSIToken.java lines 60-78:
This makes three attempts to parse the input string, and each can generate an unnecessary error log. The NumberFormatException and DateTimeParseExceptions should instead be logged at a lower level (INFO or DEBUG).
Expected behavior
No errors are logged if the date is successfully parsed.
Setup (please complete the following information):
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
The text was updated successfully, but these errors were encountered: