Consul debug

This commit is contained in:
Piotr Biernat 2023-06-28 22:59:31 +02:00
parent 7a35d1f44a
commit d484c0e3b0

View File

@ -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)