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

Write log message for matched fallback routes #47798

Merged
merged 3 commits into from
Apr 21, 2023
Merged

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Apr 20, 2023

Addresses #46404

Fallback endpoints now have fallback metadata to identify them. Routing uses the metadata to decide whether to write a log message that a fallback route was used.

Fallback metadata could be made public in the future if there is a reason, but for now, it can be internal.

@mitchdenny
Copy link
Member

LGTM other than a few minor comments.

src/Http/Routing/src/EndpointRoutingMiddleware.cs Outdated Show resolved Hide resolved
src/Http/Routing/src/EndpointRoutingMiddleware.cs Outdated Show resolved Hide resolved
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
@JamesNK JamesNK enabled auto-merge (squash) April 20, 2023 23:10
@JamesNK JamesNK merged commit 1c63bf6 into main Apr 21, 2023
@JamesNK JamesNK deleted the jamesnk/fallbackroute-log branch April 21, 2023 00:42
@ghost ghost added this to the 8.0-preview4 milestone Apr 21, 2023
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants