This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Logging ArgumentOutOfRangeException #4575
Comments
smbecker
changed the title
Logging IndexOutOfRangeException
Logging ArgumentOutOfRangeException
May 2, 2016
Found another one in MVC Mvc/src/Microsoft.AspNetCore.Mvc.Formatters.Json/Internal/MvcJsonLoggerExtensions.cs Line 20 in a78f77a
|
@BrennanConroy Can we check what else is impacted? @Eilon RC2? |
Did a quick scour of our repos and couldn't find anymore cases of this. |
@kichalla this is for RC2, thanks! |
Vow. This pattern seems error prone and is only caught when logging is enabled. I think we should validate the format when the define method is called. From what I have found, seems like there is some validation that we can do. Will send out a PR for this. |
Ah thanks! |
Done? |
Yep, this was done. @kichalla Updated the bug tag for you :) |
Thanks :-) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am not sure if this should go here or in aspnet/Logging but this log message causes a ArgumentOutOfRangeException when you attempt to enumerate over the values. Looks like another case of aspnet/Logging@410 where the LoggingMessage definition is using Define when it should be using Define().
The text was updated successfully, but these errors were encountered: