Add remote to log message
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user