-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add logger to cache entry to catch exception #37292
Add logger to cache entry to catch exception #37292
Conversation
@lindexi there is no issue tracking this is there? |
Tagging subscribers to this area: @eerhardt |
src/libraries/Microsoft.Extensions.Caching.Memory/src/CacheEntry.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this could work. I retriggered CI to see what failures there are if any.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing namespace on CacheEntry for ILogger is giving compile error
@maryamariyan Thank you and I do not know which the EventId is right to use. |
close and reopening to retrigger the CI |
@maryamariyan The CI is failed, and what should I do? |
The PR fails on the step to build native dependencies. @lindexi maybe because the PR was stale a little bit. Do you mind doing a rebase to update the PR? |
a312baa
to
4d99c9a
Compare
As we can see, we can not know the EvictionCallback invoked failed. I want to add the logger to CacheEntry to log the exception
But I don't know if it is suitable to use LogInformation to log the exception
Thank you