consul debug
This commit is contained in:
parent
12a241de81
commit
dc34531c4f
@ -110,7 +110,10 @@ func (s *Service) Unregister() error {
|
|||||||
func (s *Service) Connect() (*connect.Service, error) {
|
func (s *Service) Connect() (*connect.Service, error) {
|
||||||
svc, err := connect.NewService(s.Name, s.client)
|
svc, err := connect.NewService(s.Name, s.client)
|
||||||
s.connect = svc
|
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
|
return svc, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user