diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-04-28 05:51:00 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-04-28 05:51:00 +0800 |
commit | 182d484aa70bcd5b22117f02333b1fd3b1535dcb (patch) | |
tree | 870e90d12e37b2062c237c16fa98eb33ee704ac1 /rpc/http.go | |
parent | f54c2e75c8b3ba3464605ce3febd64645b28dd28 (diff) | |
parent | 3ad5243b188820ef61624ea761344d8fd3391e49 (diff) | |
download | go-tangerine-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar go-tangerine-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.gz go-tangerine-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.bz2 go-tangerine-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.lz go-tangerine-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.xz go-tangerine-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.zst go-tangerine-182d484aa70bcd5b22117f02333b1fd3b1535dcb.zip |
Merge pull request #817 from tgerring/rpcglog
Remove old logger from RPC pkg
Diffstat (limited to 'rpc/http.go')
-rw-r--r-- | rpc/http.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rpc/http.go b/rpc/http.go index f9c646908..4760601d8 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -13,7 +13,6 @@ import ( "github.com/rs/cors" ) -var rpclogger = logger.NewLogger("RPC") var rpclistener *stoppableTCPListener const ( @@ -31,7 +30,7 @@ func Start(pipe *xeth.XEth, config RpcConfig) error { l, err := newStoppableTCPListener(fmt.Sprintf("%s:%d", config.ListenAddress, config.ListenPort)) if err != nil { - rpclogger.Errorf("Can't listen on %s:%d: %v", config.ListenAddress, config.ListenPort, err) + glog.V(logger.Error).Infof("Can't listen on %s:%d: %v", config.ListenAddress, config.ListenPort, err) return err } rpclistener = l @@ -136,7 +135,7 @@ func send(writer io.Writer, v interface{}) (n int, err error) { var payload []byte payload, err = json.MarshalIndent(v, "", "\t") if err != nil { - rpclogger.Fatalln("Error marshalling JSON", err) + glog.V(logger.Error).Infoln("Error marshalling JSON", err) return 0, err } glog.V(logger.Detail).Infof("Sending payload: %s", payload) |