Cleaned up logger on constructors in App, State

This commit is contained in:
Ethan Frey
2017-07-03 16:54:47 +02:00
parent d0a2041c89
commit ef0ab758ed
9 changed files with 21 additions and 35 deletions
@@ -11,6 +11,7 @@ import (
"github.com/tendermint/basecoin/types"
"github.com/tendermint/go-wire"
eyescli "github.com/tendermint/merkleeyes/client"
"github.com/tendermint/tmlibs/log"
)
func TestCounterPlugin(t *testing.T) {
@@ -19,7 +20,7 @@ func TestCounterPlugin(t *testing.T) {
// Basecoin initialization
eyesCli := eyescli.NewLocalClient("", 0)
chainID := "test_chain_id"
bcApp := app.NewBasecoin(eyesCli)
bcApp := app.NewBasecoin(eyesCli, log.TestingLogger().With("module", "app"))
bcApp.SetOption("base/chain_id", chainID)
// t.Log(bcApp.Info())