Compare commits

..

2 Commits

Author SHA1 Message Date
22bc1e29a3 Fix: changed GetFullAddr() method: add debug point 2024-07-17 22:07:16 +02:00
4ce9064fbb Fix: changed GetFullAddr() method 2024-07-17 21:53:35 +02:00

View File

@@ -70,7 +70,7 @@ func (s *Service) GetFullAddr() string {
if isTLS { if isTLS {
proto = "https" proto = "https"
} }
return fmt.Sprintf("%s://%s:%d/", proto, s.domain, s.port) return fmt.Sprintf("%s://%s:%d/", proto, s.Address, s.port)
} }
func (s *Service) Register() error { func (s *Service) Register() error {
@@ -122,7 +122,7 @@ func (s *Service) RegisterHealthChecks() {
ticker := time.NewTicker(interval) ticker := time.NewTicker(interval)
for range ticker.C { for range ticker.C {
if _, err := s.healthCheck(); err != nil { 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)
} }
} }
}() }()