-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
HealthCheck APIs need to be recompiled to fix source generation for LoggerMessages #34710
Comments
Note: I debugged into this repro. I noticed that my PR (#32414) to change HeathChecks to use the source generator isn't in 6.0.0-preview6. It was merged after the preview6 snap. So the issue existed before my change. |
I believe the issue was here: aspnetcore/src/HealthChecks/HealthChecks/src/DefaultHealthCheckService.cs Lines 201 to 204 in 71dd6b0
Notice that the order of arguments is flipped. I fixed the ordering in my change, which should be in preview7. aspnetcore/src/HealthChecks/HealthChecks/src/DefaultHealthCheckService.cs Lines 211 to 212 in 5db32c0
|
Thanks @eerhardt! |
Follow up to #34709.
Describe the bug
In the current preview builds of .NET 6.0, the output of the DefaultHealthCheckService is broken (arguments are switched). This is probably due to a change in the HealthCheck Apis and/or a bug in the LoggerMessage source generator (that seems to be fixed now if there was one).
To Reproduce
Run https://github.com/danielcweber/AspLoggerMessageBugRepro2 and navigate to the /health endpoint. It'll output something like
I recreated the whole source generation of this specific HealthCheck-Api part without any issues. So I figure that things just need to be rebuilt.
Further technical details
ASP.NET Core version:
6.0.0-preview.6.21353.1
Include the output of
dotnet --info
Microsoft Visual Studio Professional 2022 Preview (64-bit)
Version 17.0.0 Preview 2.1
The text was updated successfully, but these errors were encountered: