Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Logging ArgumentOutOfRangeException #4575

Closed
smbecker opened this issue May 2, 2016 · 11 comments
Closed

Logging ArgumentOutOfRangeException #4575

smbecker opened this issue May 2, 2016 · 11 comments
Assignees
Milestone

Comments

@smbecker
Copy link

smbecker commented May 2, 2016

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().

@smbecker smbecker changed the title Logging IndexOutOfRangeException Logging ArgumentOutOfRangeException May 2, 2016
@BrennanConroy
Copy link
Member

@Eilon @muratg
The define needs to be fixed

@BrennanConroy
Copy link
Member

Found another one in MVC

@muratg
Copy link
Contributor

muratg commented May 2, 2016

@BrennanConroy Can we check what else is impacted?

@Eilon RC2?

@BrennanConroy
Copy link
Member

Did a quick scour of our repos and couldn't find anymore cases of this.

@Eilon Eilon added this to the 1.0.0-rc2 milestone May 2, 2016
@Eilon
Copy link
Member

Eilon commented May 2, 2016

@kichalla this is for RC2, thanks!

@kichalla
Copy link
Member

kichalla commented May 2, 2016

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.

@BrennanConroy
Copy link
Member

aspnet/Logging#413

@kichalla
Copy link
Member

kichalla commented May 2, 2016

Ah thanks!

@Eilon
Copy link
Member

Eilon commented May 3, 2016

Done?

@muratg
Copy link
Contributor

muratg commented May 3, 2016

Yep, this was done. @kichalla Updated the bug tag for you :)

@kichalla
Copy link
Member

kichalla commented May 3, 2016

Thanks :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants