consul debug

This commit is contained in:
Piotr Biernat 2023-07-02 01:46:11 +02:00
parent c29bb94c3d
commit f9331deec1

View File

@ -138,6 +138,7 @@ func (s *Service) healthCheck() (bool, error) {
fmt.Printf("Sending HEALTH CHECK request to: %s\n", healthUrl) fmt.Printf("Sending HEALTH CHECK request to: %s\n", healthUrl)
resp, err := client.Do(req) resp, err := client.Do(req)
if err != nil { if err != nil {
fmt.Printf("Sending HEALTH CHECK request error: %v\n", err)
return false return false
} }
defer resp.Body.Close() defer resp.Body.Close()