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
```
This commit is contained in:
Yicheng Qin 2015-08-25 21:53:52 -07:00
parent 6250fed8a8
commit 57e88465bf

View File

@ -78,7 +78,7 @@ type TLSInfo struct {
} }
func (info TLSInfo) String() string { 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 { func (info TLSInfo) Empty() bool {