From 5d447124efb6251486ed020b41a62a5299003627 Mon Sep 17 00:00:00 2001 From: David Lewis Date: Fri, 30 Mar 2018 08:38:39 -0700 Subject: [PATCH] Show host in error message for service unhealthy --- services/healthcheck.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/healthcheck.go b/services/healthcheck.go index ee97d6a9..09ce0226 100644 --- a/services/healthcheck.go +++ b/services/healthcheck.go @@ -90,7 +90,7 @@ func getHealthz(client *http.Client, serviceName, hostAddress, url string) error } if resp.StatusCode != http.StatusOK { statusBody, _ := ioutil.ReadAll(resp.Body) - return fmt.Errorf("service [%s] is not healthy response code: [%d], response body: %s", serviceName, resp.StatusCode, statusBody) + return fmt.Errorf("Service [%s] is not healthy on host [%s]. Response code: [%d], response body: %s", serviceName, hostAddress, resp.StatusCode, statusBody) } return nil }