From 57e88465bfdb1ac18a092f0423883672cabe8d77 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Tue, 25 Aug 2015 21:53:52 -0700 Subject: [PATCH] pkg/transport: print ClientCertAuth in TLSInfo.String() It is good to print it in debug output: ``` 21:56:12 etcd1 | 2015-08-25 21:56:12.162406 I | etcdmain: peerTLS: cert = certs/etcd1.pem, key = certs/etcd1-key.pem, ca = , trusted-ca = certs/ca.pem, client-cert-auth = true ``` --- pkg/transport/listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/transport/listener.go b/pkg/transport/listener.go index d8424bed7..8f29064cc 100644 --- a/pkg/transport/listener.go +++ b/pkg/transport/listener.go @@ -78,7 +78,7 @@ type TLSInfo struct { } func (info TLSInfo) String() string { - return fmt.Sprintf("cert = %s, key = %s, ca = %s, trusted-ca = %s", info.CertFile, info.KeyFile, info.CAFile, info.TrustedCAFile) + return fmt.Sprintf("cert = %s, key = %s, ca = %s, trusted-ca = %s, client-cert-auth = %v", info.CertFile, info.KeyFile, info.CAFile, info.TrustedCAFile, info.ClientCertAuth) } func (info TLSInfo) Empty() bool {