Skip to content
Snippets Groups Projects
Unverified Commit 40f5b4c6 authored by Benjamin Bollen's avatar Benjamin Bollen
Browse files

client: silence log output from go-rpc

parent 42c6df0a
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,9 @@ import (
// "strings"
"github.com/tendermint/go-rpc/client"
// Note [ben]: this is included to silence the logger from tendermint/go-rpc/client
// see func init()
tendermint_log "github.com/tendermint/log15"
log "github.com/eris-ltd/eris-logger"
......@@ -73,6 +76,13 @@ func NewErisNodeClient(rpcString string) *ErisNodeClient {
}
}
// Note [Ben]: This is a hack to silence Tendermint logger from tendermint/go-rpc
// it needs to be initialised before go-rpc, hence it's placement here.
func init() {
h := tendermint_log.LvlFilterHandler(tendermint_log.LvlWarn, tendermint_log.StdoutHandler)
tendermint_log.Root().SetHandler(h)
}
//------------------------------------------------------------------------------------
// broadcast to blockchain node
// NOTE: [ben] Eris Client first continues from tendermint rpc, but will have handshake to negotiate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment