diff options
author | klaxa <[email protected]> | 2024-07-03 21:05:52 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-03 19:05:52 +0000 |
commit | f350e001b6319dd8833fbdb31ffb0ccadb2aa2e0 (patch) | |
tree | de42d71256950980155e7de3bef1e610f46bdfae /modules | |
parent | 0287009ee5fbe171e7a84f7d5b965992bb5488a7 (diff) | |
download | caddy-f350e001b6319dd8833fbdb31ffb0ccadb2aa2e0.tar.gz caddy-f350e001b6319dd8833fbdb31ffb0ccadb2aa2e0.zip |
reverseproxy: Only log host is up status on change (fixes #6415) (#6419)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/caddyhttp/reverseproxy/healthchecks.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/healthchecks.go b/modules/caddyhttp/reverseproxy/healthchecks.go index 90db9b340..888dadb79 100644 --- a/modules/caddyhttp/reverseproxy/healthchecks.go +++ b/modules/caddyhttp/reverseproxy/healthchecks.go @@ -426,6 +426,7 @@ func (h *Handler) doActiveHealthCheck(dialInfo DialInfo, hostAddr string, upstre } if upstream.Host.activeHealthPasses() >= h.HealthChecks.Active.Passes { if upstream.setHealthy(true) { + h.HealthChecks.Active.logger.Info("host is up", zap.String("host", hostAddr)) h.events.Emit(h.ctx, "healthy", map[string]any{"host": hostAddr}) upstream.Host.resetHealth() } @@ -492,7 +493,6 @@ func (h *Handler) doActiveHealthCheck(dialInfo DialInfo, hostAddr string, upstre } // passed health check parameters, so mark as healthy - h.HealthChecks.Active.logger.Info("host is up", zap.String("host", hostAddr)) markHealthy() return nil |