Add remote to log message

This commit is contained in:
Pablu23
2025-05-19 09:38:27 +02:00
parent 5f3b477adb
commit dc2fe84a96

View File

@@ -76,7 +76,7 @@ func (router *Router) Healthz(w http.ResponseWriter, r *http.Request) {
res, err := router.client.Get(url) res, err := router.client.Get(url)
if err != nil { if err != nil {
log.Warn().Err(err).Int("port", host.Port).Msg("Unhealthy") log.Warn().Err(err).Str("remote", remote).Int("port", host.Port).Msg("Unhealthy")
healthy = false healthy = false
} else if res.StatusCode != 200 { } else if res.StatusCode != 200 {
healthy = false healthy = false