-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Decide if duplicate EventNames in LoggerMessage is appropriate #46072
Comments
@eerhardt thanks for raising this up. I believe this is a copy/paste type of error. We should change the event names to be unique |
We probably want the name to be |
Thanks for contacting us. We're moving this issue to the |
@javiercn What is going on with The easy fix is changing |
|
By the way, logging ID and name changes are considered breaking changes and should be added at https://github.com/aspnet/Announcements and friends. e.g. https://github.com/aspnet/Announcements |
Note that in #46055, @SteveSandersonMS and I updated the event names that were obviously wrong. We should include them as well in any announcement of event name changes:
|
Hey @javiercn, is this issue still open? If yes I would like to work on it. |
@shiladitya-mukerji-22 Yes, if nobody yet has addressed the issue, I think we would accept a change for this. |
@javiercn Under the task it shows that no one has been assigned yet. So, could you please assign the task to me. |
@shiladitya-mukerji-22 go for it. |
@javiercn Thank you. |
We have a couple cases caught by the new LoggerMessage analyzer in dotnet/runtime#64667.
Two duplicates here:
InvokeDotNetMethodException
andInvokeDotNetMethodSuccess
aspnetcore/src/Components/Server/src/Circuits/RemoteJSRuntime.cs
Lines 199 to 209 in 334da01
And a duplicate
LocationChangeFailed
between:aspnetcore/src/Components/Server/src/Circuits/CircuitHost.cs
Lines 761 to 762 in 334da01
aspnetcore/src/Components/Server/src/Circuits/CircuitHost.cs
Lines 812 to 813 in 334da01
I've suppressed these warnings in #46055 for now. But we should make a conscious decision if we really want/need these EventNames to be the same, or if we should change them. My understanding is changing them is technically a breaking change, so we should be sure that they need changing if we do.
The text was updated successfully, but these errors were encountered: