Browse Source

Merge remote-tracking branch 'origin/feature/506-tracing-logger' into unstable

pull/561/head
Ethan Buchman 8 years ago
parent
commit
dcc538ff32
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      cmd/tendermint/commands/root.go

+ 4
- 0
cmd/tendermint/commands/root.go View File

@ -7,6 +7,7 @@ import (
"github.com/spf13/viper"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tmlibs/cli"
tmflags "github.com/tendermint/tmlibs/cli/flags"
"github.com/tendermint/tmlibs/log"
)
@ -34,6 +35,9 @@ var RootCmd = &cobra.Command{
if err != nil {
return err
}
if viper.GetBool(cli.TraceFlag) {
logger = log.NewTracingLogger(logger)
}
return nil
},
}

Loading…
Cancel
Save