Skip to content
Snippets Groups Projects
Commit f61579a5 authored by Zach's avatar Zach Committed by GitHub
Browse files

Merge pull request #349 from benjaminbollen/issue347_silence-logging-eris-client

client: silence log output from go-rpc
parents 2bd33132 c46cee0e
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