etcdmain: enable grpc tracing with --debug

This commit is contained in:
Anthony Romano 2017-02-27 09:28:53 -08:00
parent 01557ebc8f
commit 298d58841e

View File

@ -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")