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: Only log host is up status on change #6419

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

klaxa
Copy link
Contributor

@klaxa klaxa commented Jun 23, 2024

Fixes #6415

This changes the behavior of logging to only log the host up-state on state changes.

I manually tested it in the setup I needed it in and I noticed that if the upstream is available immediately the line is not logged. That leads me to believe that the event is also not emitted? I am again unsure if this is the intended behavior.

Thanks!

@CLAassistant
Copy link

CLAassistant commented Jun 23, 2024

CLA assistant check
All committers have signed the CLA.

@francislavoie francislavoie changed the title logging: Only log host is up status on change (fixes #6415) reverseproxy: Only log host is up status on change (fixes #6415) Jun 30, 2024
@francislavoie francislavoie changed the title reverseproxy: Only log host is up status on change (fixes #6415) reverseproxy: Only log host is up status on change Jun 30, 2024
@francislavoie francislavoie added the bug 🐞 Something isn't working label Jun 30, 2024
@mholt
Copy link
Member

mholt commented Jul 3, 2024

Thanks; this is probably still an improvement, but it would be nice to log when the host is initially discovered to be up, since active health checks should generally assume the host is down by default. That doesn't have to happen in this PR though.

@mholt mholt enabled auto-merge (squash) July 3, 2024 19:02
@mholt mholt merged commit f350e00 into caddyserver:master Jul 3, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Active health check logs on every check instead of state change
4 participants