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

reverseproxy: Logging for streaming and upgrades #3689

Merged
merged 3 commits into from
Nov 20, 2020

Conversation

francislavoie
Copy link
Member

https://caddy.community/t/caddy-reverse-proxy-to-another-domain/9589/6

Looks like we forgot to set up logging here. I'm not sure if using the sugared logger is ideal, but it's the easiest way to get this working as similarly to the stdlib implementation I think.

@francislavoie francislavoie added this to the v2.3.0 milestone Aug 26, 2020
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Ah thanks. I don't think there's any reason we need to do things the same way the std lib logger worked/works. We can use the normal structured logs. And some of these should/could be different levels. I'm not super sure which levels are the right ones all the time but let me know if you disagree on any!

modules/caddyhttp/reverseproxy/streaming.go Outdated Show resolved Hide resolved
modules/caddyhttp/reverseproxy/streaming.go Show resolved Hide resolved
modules/caddyhttp/reverseproxy/streaming.go Outdated Show resolved Hide resolved
modules/caddyhttp/reverseproxy/streaming.go Outdated Show resolved Hide resolved
modules/caddyhttp/reverseproxy/streaming.go Outdated Show resolved Hide resolved
modules/caddyhttp/reverseproxy/streaming.go Outdated Show resolved Hide resolved
@mholt mholt changed the title reverseproxy: Enable error logging for connection upgrades reverseproxy: Logging for streaming and upgrades Nov 20, 2020
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thanks for helping with this!

@mholt mholt merged commit 9605853 into caddyserver:master Nov 20, 2020
@francislavoie francislavoie deleted the upgrade-conn-logging branch November 20, 2020 21:26
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.

2 participants