Skip to content

reverseproxy: Only log host is up status on change#6419

Merged
mholt merged 1 commit into
caddyserver:masterfrom
klaxa:master
Jul 3, 2024
Merged

reverseproxy: Only log host is up status on change#6419
mholt merged 1 commit into
caddyserver:masterfrom
klaxa:master

Conversation

@klaxa

@klaxa klaxa commented Jun 23, 2024

Copy link
Copy Markdown
Contributor

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

CLAassistant commented Jun 23, 2024

Copy link
Copy Markdown

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

mholt commented Jul 3, 2024

Copy link
Copy Markdown
Member

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
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