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

Fix [NoDataClassification] attribute handling in logging source-gen #5191

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented May 31, 2024

Fixes #5188

The logging code generator wasn't aware of the
NoDataClassification attribute and treated the
associated data as having in fact a data classification. This led to an incorrect warning.

In addition, what should have been a warning was
treated like an error and aborted compilation. Now, if the legit problem occurs, it will be reported
as warning and not stop compilation.

Microsoft Reviewers: Open in CodeFlow

The logging code generator wasn't aware of the
NoDataClassification attribute and treated the
associated data as having in fact a data classification.
This led to an incorrect warning.

In addition, what should have been a warning was
treated like an error and aborted compilation. Now,
if the legit problem occurs, it will be reported
as warning and not stop compilation.
@geeknoid geeknoid requested a review from xakep139 May 31, 2024 22:22
@xakep139 xakep139 added this to the 8.6 milestone Jun 3, 2024
@xakep139 xakep139 linked an issue Jun 3, 2024 that may be closed by this pull request
@xakep139 xakep139 changed the title Fix #5188 Fix [NoDataClassification] attribute handling in logging source-gen Jun 3, 2024
@geeknoid geeknoid merged commit 4bafacb into main Jun 3, 2024
6 checks passed
@geeknoid geeknoid deleted the geeknoid/5188 branch June 3, 2024 15:48
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2024
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.

Data redaction doesn't work with record class
2 participants