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

caddyhttp: Better host matching for logger names #3522

Merged
merged 1 commit into from
Jun 26, 2020
Merged

caddyhttp: Better host matching for logger names #3522

merged 1 commit into from
Jun 26, 2020

Conversation

mholt
Copy link
Member

@mholt mholt commented Jun 25, 2020

First try an exact lookup like before, but if it fails, strip the port
and try again. example.com:1234 should still use a logger keyed for
example.com if there is no key example.com:1234.

Fix #3488

First try an exact lookup like before, but if it fails, strip the port
and try again. example.com:1234 should still use a logger keyed for
example.com if there is no key example.com:1234.
@mholt mholt added the under review 🧐 Review is pending before merging label Jun 25, 2020
@mholt mholt added this to the v2.1.0 milestone Jun 25, 2020
@mholt mholt changed the title caddyhttp: Better host matching for logger names (fix #3488) caddyhttp: Better host matching for logger names Jun 25, 2020
@mholt mholt removed the under review 🧐 Review is pending before merging label Jun 26, 2020
@mholt mholt merged commit 21c00a3 into master Jun 26, 2020
@mholt mholt deleted the issue3488 branch June 26, 2020 18:01
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.

v2: Logs configuration doesn't work when port is non-standard on Docker
1 participant