From 60cea4415b9f13c41d69d58c80abba54cc70ea2a Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 4 Aug 2016 17:49:02 -0400 Subject: [PATCH] update logger --- main.go | 8 ++------ types/val.go | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index b879b16bd..c85a830f0 100644 --- a/main.go +++ b/main.go @@ -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() { diff --git a/types/val.go b/types/val.go index fb001eaef..3770df171 100644 --- a/types/val.go +++ b/types/val.go @@ -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 }