-
-
Notifications
You must be signed in to change notification settings - Fork 58
chore: Use extension methods for logging #2513
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
Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. This PR will not appear in the changelog. 🤖 This preview updates automatically when you update the PR. |
JoshuaMoelans
left a comment
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.
Seems like there are a few files which still have the options.DiagnosticLogger?.LogXXX syntax:
| } | ||
| catch (ThreadAbortException e) | ||
| { | ||
| Logger?.Log(SentryLevel.Debug, "ANR watchdog thread aborted.", e); |
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.
| Logger?.LogDebug("ANR watchdog thread aborted.", e); |
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.
The LogDebug has no overload that takes an exception. The ThreadAbortException is an expected scenario, i.e. when the thread is forcefully terminated during shutdown or domain unload, which is why we swallow this by simply logging.
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.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Because the agent keeps getting confused by it.
#skip-changelog