mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
benchmark: enable grpc error logging on stderr
Lets you see connection errors (e.g., if tls is misconfigured)
This commit is contained in:
parent
61064a7be3
commit
b8444d4d35
@ -17,6 +17,7 @@ package cmd
|
||||
import (
|
||||
"crypto/rand"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@ -58,6 +59,8 @@ func mustCreateConn() *clientv3.Client {
|
||||
}
|
||||
|
||||
client, err := clientv3.New(cfg)
|
||||
clientv3.SetLogger(log.New(os.Stderr, "grpc", 0))
|
||||
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "dial error: %v\n", err)
|
||||
os.Exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user