-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
ref: Handle non json error response messages. #690
Conversation
Codecov Report
@@ Coverage Diff @@
## main #690 +/- ##
==========================================
+ Coverage 76.01% 77.96% +1.94%
==========================================
Files 163 163
Lines 5250 5260 +10
Branches 1350 1354 +4
==========================================
+ Hits 3991 4101 +110
+ Misses 879 769 -110
- Partials 380 390 +10
Continue to review full report at Codecov.
|
@@ -68,17 +68,36 @@ internal static class DiagnosticLoggerExtensions | |||
public static void LogError<TArg>( | |||
this IDiagnosticLogger logger, | |||
string message, | |||
Exception exception, | |||
Exception? exception, |
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.
Not supposed to be nullable.
We should have an overload that doesn't take it then
|
||
_options.DiagnosticLogger?.LogError( | ||
"Sentry rejected the envelope {0}. Status code: {1}. Error detail: {2}. Error causes: {3}.", | ||
null, |
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.
Lets have an overload that doesn't take null
LogError Extensions are going to be implemented on another PR. For now, I'm using the old Log pattern. |
Closes #689.
Closes #688