Add logging of new flags
diff --git a/stress/client/main.go b/stress/client/main.go
index bfa73cb..99e164b 100644
--- a/stress/client/main.go
+++ b/stress/client/main.go
@@ -253,6 +253,9 @@
grpclog.Printf("num_channels_per_server: %d", *numChannelsPerServer)
grpclog.Printf("num_stubs_per_channel: %d", *numStubsPerChannel)
grpclog.Printf("metrics_port: %d", *metricsPort)
+ grpclog.Printf("use_tls: %t", *useTLS)
+ grpclog.Printf("use_test_ca: %t", *testCA)
+ grpclog.Printf("server_host_override: %s", *tlsServerName)
grpclog.Println("addresses:")
for i, addr := range addresses {
@@ -264,7 +267,7 @@
}
}
-func getChannel(address string, useTLS, testCA bool, tlsServerName string) (*grpc.ClientConn, error) {
+func newConn(address string, useTLS, testCA bool, tlsServerName string) (*grpc.ClientConn, error) {
var opts []grpc.DialOption
if useTLS {
var sn string
@@ -302,7 +305,7 @@
for serverIndex, address := range addresses {
for connIndex := 0; connIndex < *numChannelsPerServer; connIndex++ {
- conn, err := getChannel(address, *useTLS, *testCA, *tlsServerName)
+ conn, err := newConn(address, *useTLS, *testCA, *tlsServerName)
if err != nil {
grpclog.Fatalf("Fail to dial: %v", err)
}