From 7f2025ef6ffe36059b39243bc306a56f9416c42f Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 20 Jul 2024 14:18:08 +0200 Subject: [PATCH] add debug point --- consul/discovery.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consul/discovery.go b/consul/discovery.go index d5b48c4..5d83a8f 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -158,6 +158,7 @@ func (s *Service) healthCheck() (bool, error) { alive := func() bool { client := &http.Client{} healthUrl := fmt.Sprintf("%s%s?name=%s", s.GetFullAddr(), "health", s.Name) + fmt.Printf("HealthCheck URL: %s%s?name=%s", s.GetFullAddr(), "health", s.Name) req, err := http.NewRequest(http.MethodGet, healthUrl, nil) if err != nil { return false