consul debug

This commit is contained in:
Piotr Biernat 2023-06-30 13:40:33 +02:00
parent 12a241de81
commit dc34531c4f

View File

@ -110,7 +110,10 @@ func (s *Service) Unregister() error {
func (s *Service) Connect() (*connect.Service, error) {
svc, err := connect.NewService(s.Name, s.client)
s.connect = svc
fmt.Printf("CONNECT CERT CONFIG: %v", svc.ServerTLSConfig())
cnf := svc.ServerTLSConfig()
for k, c := range cnf.Certificates {
fmt.Printf("CONNECT CERT %s: %v", k, c)
}
return svc, err
}