Skip to content
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

LoggingSourceGenerator - Fixes InvalidCastException when using other attributes #67179

Merged
merged 1 commit into from
Mar 26, 2022

Conversation

maryamariyan
Copy link
Member

  • alongside LoggerMessageAttribute

Fixes #67167

@ghost
Copy link

ghost commented Mar 26, 2022

Tagging subscribers to this area: @dotnet/area-extensions-logging
See info in area-owners.md if you want to be subscribed.

Issue Details
  • alongside LoggerMessageAttribute

Fixes #67167

Author: maryamariyan
Assignees: -
Labels:

area-Extensions-Logging

Milestone: -

@maryamariyan maryamariyan merged commit 0713627 into dotnet:main Mar 26, 2022

if (boundAttrbutes == null)
if (boundAttributes == null || boundAttributes!.Value.Length == 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you need a ! here? You just checked it for null on the same line.

radekdoulik pushed a commit to radekdoulik/runtime that referenced this pull request Mar 30, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Apr 27, 2022
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 Source Generator fails with a InvalidCastException
3 participants