From 7bbc7177864b06d382cac488e07e05242e750508 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 29 Jun 2023 15:59:27 +0200 Subject: [PATCH] Debug --- consul/discovery.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/consul/discovery.go b/consul/discovery.go index 0cfe2c0..592d50f 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -134,6 +134,10 @@ func (s *Service) healthCheck() (bool, error) { } defer resp.Body.Close() + var body []byte + resp.Body.Read(body) + fmt.Printf("HEALTH CHECK response to: %v -- %v\n", resp, body) + return resp.StatusCode == http.StatusOK }()