Browse Source

etcdmain: enable grpc tracing with --debug

Anthony Romano 8 years ago
parent
commit
298d58841e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      etcdmain/etcd.go

+ 1 - 0
etcdmain/etcd.go

@@ -382,6 +382,7 @@ func setupLogging(cfg *config) {
 	capnslog.SetGlobalLogLevel(capnslog.INFO)
 	if cfg.Debug {
 		capnslog.SetGlobalLogLevel(capnslog.DEBUG)
+		grpc.EnableTracing = true
 	}
 	if cfg.LogPkgLevels != "" {
 		repoLog := capnslog.MustRepoLogger("github.com/coreos/etcd")