Skip to content

Logging Generator: messaging fix#54080

Merged
maryamariyan merged 2 commits intodotnet:mainfrom
jeffl8n:issue54008-logging-generator-messaging-fix
Jun 14, 2021
Merged

Logging Generator: messaging fix#54080
maryamariyan merged 2 commits intodotnet:mainfrom
jeffl8n:issue54008-logging-generator-messaging-fix

Conversation

@jeffl8n
Copy link
Contributor

@jeffl8n jeffl8n commented Jun 11, 2021

Update TemplateHasNoCorrespondingArgument diag message to contain Template name instead of key value pair. Also updated String Resources to add quotes around the template name to be consistent with ArgumentHasNoCorrespondingTemplateMessage. Updated test case to check for diag message contents.

Fixes #54008

jeffl8n added 2 commits June 11, 2021 15:56
(Current) Actual

Template [foo, foo] is not provided as argument to the logging method

(To be) Expected

Template 'foo' is not provided as argument to the logging method
Template name was not being passed to the diag method as expected, causing the message to contain a key/value pair instead of template name.  Also updated the Strings to add quotes around the template name to make TemplateHasNoCorrespondingArgumentMessage consistent with ArgumentHasNoCorrespondingTemplateMessage.

Fixes dotnet#54008
@ghost
Copy link

ghost commented Jun 11, 2021

Tagging subscribers to this area: @maryamariyan
See info in area-owners.md if you want to be subscribed.

Issue Details

Update TemplateHasNoCorrespondingArgument diag message to contain Template name instead of key value pair. Also updated String Resources to add quotes around the template name to be consistent with ArgumentHasNoCorrespondingTemplateMessage. Updated test case to check for diag message contents.

Fixes #54008

Author: jeffl8n
Assignees: -
Labels:

area-Extensions-Logging

Milestone: -

@dnfadmin
Copy link

dnfadmin commented Jun 11, 2021

CLA assistant check
All CLA requirements met.

@maryamariyan maryamariyan mentioned this pull request Jun 12, 2021
@maryamariyan
Copy link
Contributor

Thank you both @jeffl8n and @j0nimost for your contribution PRs (#54080 and #54058) to this repo.
The two PRs are fixing the same issue and with similar diff, I approved both.

I'll merged PR #54080 since it was finalized first.

@maryamariyan maryamariyan merged commit 469db3d into dotnet:main Jun 14, 2021
@jeffl8n jeffl8n deleted the issue54008-logging-generator-messaging-fix branch June 14, 2021 14:53
@ghost ghost locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logging Generator: messaging fix

3 participants