mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-11 12:21:20 +00:00
disable PersistenPreRun for counter/dummy
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user