Consul debug
This commit is contained in:
parent
7a35d1f44a
commit
d484c0e3b0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user