mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-22 10:51:20 +00:00
update logger
This commit is contained in:
parent
5f721bcfa0
commit
60cea4415b
8
main.go
8
main.go
@ -15,18 +15,14 @@ import (
|
|||||||
|
|
||||||
"github.com/codegangsta/cli"
|
"github.com/codegangsta/cli"
|
||||||
. "github.com/tendermint/go-common"
|
. "github.com/tendermint/go-common"
|
||||||
cfg "github.com/tendermint/go-config"
|
"github.com/tendermint/go-logger"
|
||||||
pcm "github.com/tendermint/go-process"
|
pcm "github.com/tendermint/go-process"
|
||||||
"github.com/tendermint/go-rpc/server"
|
"github.com/tendermint/go-rpc/server"
|
||||||
"github.com/tendermint/go-wire"
|
"github.com/tendermint/go-wire"
|
||||||
tmcfg "github.com/tendermint/tendermint/config/tendermint"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
logger.SetLogLevel("debug")
|
||||||
config := tmcfg.GetConfig("")
|
|
||||||
config.Set("log_level", "debug")
|
|
||||||
cfg.ApplyConfig(config) // Notify modules of new config
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -68,7 +68,7 @@ func (vs *ValidatorState) Start() error {
|
|||||||
rpcAddr := vs.Config.RPCAddr
|
rpcAddr := vs.Config.RPCAddr
|
||||||
vs.Config.mtx.Unlock()
|
vs.Config.mtx.Unlock()
|
||||||
|
|
||||||
em := eventmeter.NewEventMeter(fmt.Sprintf("ws://%s/websocket", rpcAddr), UnmarshalEvent)
|
em := eventmeter.NewEventMeter(rpcAddr, UnmarshalEvent)
|
||||||
if _, err := em.Start(); err != nil {
|
if _, err := em.Start(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user