diff --git a/consul/discovery.go b/consul/discovery.go index 71e2e2c..ed89c21 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -162,14 +162,12 @@ func (s *Service) healthCheck() (bool, error) { // fmt.Printf("HealthCheck URL: %s%s?name=%s", s.GetFullAddr(), "health", s.Name) req, err := http.NewRequest(http.MethodGet, healthUrl, nil) if err != nil { - fmt.Println(err) return false } req.Header.Set("User-Agent", "service/internal") resp, err := client.Do(req) if err != nil { - fmt.Println(err) return false } defer resp.Body.Close() @@ -177,8 +175,6 @@ func (s *Service) healthCheck() (bool, error) { var body []byte resp.Body.Read(body) - fmt.Println(resp.StatusCode) - return resp.StatusCode == http.StatusOK }()