diff --git a/consul/discovery.go b/consul/discovery.go index fc2c88d..2febcc4 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -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 }