Browse Source

tracing logger (Refs #506)

DEPENDS ON https://github.com/tendermint/tmlibs/pull/21
pull/519/head
Anton Kaliaev 8 years ago
parent
commit
9bc1790320
No known key found for this signature in database GPG Key ID: 7B6881D965918214
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

@ -8,6 +8,7 @@ import (
tmflags "github.com/tendermint/tendermint/cmd/tendermint/commands/flags"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tmlibs/cli"
"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