Browse Source

disable PersistenPreRun for counter/dummy

pull/1780/head
Zach Ramsay 7 years ago
parent
commit
f9e14ad61b
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      cmd/abci-cli/abci-cli.go

+ 7
- 1
cmd/abci-cli/abci-cli.go View File

@ -15,7 +15,6 @@ import (
"github.com/tendermint/abci/example/dummy"
"github.com/tendermint/abci/server"
"github.com/tendermint/abci/types"
//"github.com/tendermint/abci/version"
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tmlibs/log"
@ -70,6 +69,13 @@ var RootCmd = &cobra.Command{
Short: "",
Long: "",
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
switch cmd.Use {
// for the examples apps, don't pre-run
case "counter", "dummy":
return nil
}
if logger == nil {
logger = log.NewFilter(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), log.AllowError())
}


Loading…
Cancel
Save