-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[release/6.0] [Blazor] Fix duplicated place holder in log message #53009
Conversation
`ParentComponentId` is duplicated in `Microsoft.AspNetCore.Components.RenderTree.Renderer+Log.InitializingChildComponent`.
Thanks for your PR, @gayaK. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Hi @gayaK. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the servicing process document. |
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 @gayaK.
Is this actually something that impacts you and if so can you share more details about your scenario?
Servicing pretty much anything has an inherent risk to it that we'd rather avoid.
Thank you for reviewing and approving my PR. This update resolves a bug that leads to decreased performance under specific circumstances:
I believe the benefits outweigh the risks, considering that debug-level logging is seldom enabled in production environments. DetailsThe unfixed message in Microsoft.AspNetCore.Components.RenderTree.Renderer will be transformed into
Nevertheless, some of these frameworks convert the list into a dictionary, leading to exceptions caused by duplicated keys. The following is a part of the stack trace that causes the exception in NLog.
After catching that exception, key-value pairs are converted to the following:
I also intend to report this issue to NLog. |
Hi @gayaK. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge. To learn more about how to prepare a servicing PR click here. |
Hi @gayaK. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed. |
Thank you for your contribution, @gayaK! |
Fix duplicated place holder in log message
Fix bug of log message in .NET6 or earlyer.
Description
Microsoft.AspNetCore.Components.RenderTree.Renderer+Log.InitializingChildComponent() has duplicated place holder
ParentComponentId
.However, .NET7 or later are already fixed by #35585
Customer Impact
This PR can avoid frequent exceptions on some logging frameworks.
Regression?
Risk
The logic has not been modified, only the message has been modified.
Verification
Packaging changes reviewed?
When servicing release/2.1