From dc34531c4f666ecc8de19626233522fd2d93bc3c Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 30 Jun 2023 13:40:33 +0200 Subject: [PATCH] consul debug --- consul/discovery.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }