diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-15 06:09:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-15 06:09:13 +0800 |
commit | d82aaf617c8ec868446d8bd334d1e3dbc1475244 (patch) | |
tree | b53d22937b843aa171306e5c0cc0a161f7e32bff | |
parent | f46af4508b6ecc713527b912d0a84039b4990c15 (diff) | |
download | go-tangerine-d82aaf617c8ec868446d8bd334d1e3dbc1475244.tar.gz go-tangerine-d82aaf617c8ec868446d8bd334d1e3dbc1475244.tar.zst go-tangerine-d82aaf617c8ec868446d8bd334d1e3dbc1475244.zip |
rpc: changed logging to use glog
-rw-r--r-- | rpc/http.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rpc/http.go b/rpc/http.go index f15d557ad..790442a28 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -9,6 +9,7 @@ import ( "net/http" "github.com/ethereum/go-ethereum/logger" + "github.com/ethereum/go-ethereum/logger/glog" "github.com/ethereum/go-ethereum/xeth" "github.com/rs/cors" ) @@ -110,7 +111,7 @@ func RpcResponse(api *EthereumApi, request *RpcRequest) *interface{} { response = &RpcErrorResponse{Jsonrpc: jsonrpcver, Id: request.Id, Error: jsonerr} } - rpclogger.DebugDetailf("Generated response: %T %s", response, response) + glog.V(logger.Detail).Infof("Generated response: %T %s", response, response) return &response } @@ -121,7 +122,7 @@ func send(writer io.Writer, v interface{}) (n int, err error) { rpclogger.Fatalln("Error marshalling JSON", err) return 0, err } - rpclogger.DebugDetailf("Sending payload: %s", payload) + glog.V(logger.Detail).Infof("Sending payload: %s", payload) return writer.Write(payload) } |