Skip to content

Fix logging of original request path #2616

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

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

jtgeibel
Copy link
Member

@jtgeibel jtgeibel commented Jul 8, 2020

In the original implementation the logging middleware would log the
final rewritten path. The NormalizePath middleware had custom logic
to log the original path, but the other 2 uses of path_mut() were not
handled consistently. The logging middleware now ensures that the
original request path is always logged.

r? @JohnTitor

In the original implementation the logging middleware would log the
final rewritten path. The NormalizePath middleware had custom logic
to log the original path, but the other 2 uses of path_mut() were not
handled consistently. The logging middleware now ensures that the
original request path is always logged.
@jtgeibel jtgeibel force-pushed the fix-path-rewrite-logging branch from 53fafee to 29eadd0 Compare July 8, 2020 23:12
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

That's reasonable, looks good!

@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jul 9, 2020

📌 Commit 29eadd0 has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Jul 9, 2020

⌛ Testing commit 29eadd0 with merge 3dbbcb0...

@bors
Copy link
Contributor

bors commented Jul 9, 2020

☀️ Test successful - checks-travis
Approved by: JohnTitor
Pushing 3dbbcb0 to master...

@bors bors merged commit 3dbbcb0 into rust-lang:master Jul 9, 2020
@jtgeibel jtgeibel deleted the fix-path-rewrite-logging branch July 9, 2020 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants