From d484c0e3b00f293aaf54cba8aeea457affda52aa Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 28 Jun 2023 22:59:31 +0200 Subject: [PATCH] Consul debug --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 39fc8ed..8130dde 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -115,7 +115,7 @@ func (s *Service) healthCheck() (bool, error) { alive := func() bool { client := &http.Client{} healthUrl := s.GetFullAddr() + "health" - fmt.Printf("Sending request to the %s", healthUrl) + fmt.Printf("Sending request to the %s\n", healthUrl) req, err := http.NewRequest(http.MethodGet, healthUrl, nil) if err != nil { fmt.Printf("Failed to create new Consul request: %v\n", err)