From 22bc1e29a341f1e757d95d07608e5ef2068ec587 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 22:07:16 +0200 Subject: [PATCH] Fix: changed GetFullAddr() method: add debug point --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 679d25e..b2850fb 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -122,7 +122,7 @@ func (s *Service) RegisterHealthChecks() { ticker := time.NewTicker(interval) for range ticker.C { if _, err := s.healthCheck(); err != nil { - fmt.Printf("HealthCheck endpoint not available #: %v\n", err) + fmt.Printf("HealthCheck endpoint not available (%s)#: %v\n", s.GetFullAddr(), err) } } }()