-
Notifications
You must be signed in to change notification settings - Fork 151
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
Handle IndexOutOfRangeException thrown by Microsoft.Extensions.Logging when using invalid format string #272
Conversation
Codecov Report
@@ Coverage Diff @@
## master #272 +/- ##
==========================================
+ Coverage 69.38% 69.58% +0.19%
==========================================
Files 9 9
Lines 761 766 +5
Branches 135 135
==========================================
+ Hits 528 533 +5
Misses 180 180
Partials 53 53
Continue to review full report at Codecov.
|
Thanks! But I think we should report this bug at Ms, and hope those guys fix it? |
Even if they decide to fix the "bug" (garbage-in means garbage out) then it will not be fixed for any known version of NetCore ("bug" not important enough to be back-ported). See also: dotnet/extensions#550 So I think this fix should be made, as all MEL-Loggers are expected to throw FormatException (signals error in format-string) and not IndexOutOfRangeException (signals error in NLog) |
a9aa1d3
to
5e43a90
Compare
You convinced me, thanks for the effort : |
5e43a90
to
8842f2f
Compare
8842f2f
to
4d5a7cb
Compare
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.
Thanks!!
Throw FormatException when IndexOutOfRangeException caused by invalid parameters
See also #271