From 6dd11c64418a02dd4e015e7b6ab478443186a9f8 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 29 Jun 2023 00:11:56 +0200 Subject: [PATCH] Consul debug --- consul/discovery.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index 9d263c4..64767c8 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -117,19 +117,16 @@ func (s *Service) healthCheck() (bool, error) { healthUrl := s.GetFullAddr() + "health" req, err := http.NewRequest(http.MethodGet, healthUrl, nil) if err != nil { - fmt.Printf("CreateRequest error: %v\n", err) return false } req.Header.Set("User-Agent", "service/internal") resp, err := client.Do(req) if err != nil { - fmt.Printf("SendRequest error: %v\n", err) return false } defer resp.Body.Close() - fmt.Printf("ResponseCODE: %v -- %v\n", req, resp) return resp.StatusCode == http.StatusOK }()