Browse Source

update logger

pull/1943/head
Ethan Buchman 8 years ago
parent
commit
60cea4415b
2 changed files with 3 additions and 7 deletions
  1. +2
    -6
      main.go
  2. +1
    -1
      types/val.go

+ 2
- 6
main.go View File

@ -15,18 +15,14 @@ import (
"github.com/codegangsta/cli"
. "github.com/tendermint/go-common"
cfg "github.com/tendermint/go-config"
"github.com/tendermint/go-logger"
pcm "github.com/tendermint/go-process"
"github.com/tendermint/go-rpc/server"
"github.com/tendermint/go-wire"
tmcfg "github.com/tendermint/tendermint/config/tendermint"
)
func init() {
config := tmcfg.GetConfig("")
config.Set("log_level", "debug")
cfg.ApplyConfig(config) // Notify modules of new config
logger.SetLogLevel("debug")
}
func main() {


+ 1
- 1
types/val.go View File

@ -68,7 +68,7 @@ func (vs *ValidatorState) Start() error {
rpcAddr := vs.Config.RPCAddr
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 {
return err
}


Loading…
Cancel
Save