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/api.go | |
parent | f54c2e75c8b3ba3464605ce3febd64645b28dd28 (diff) | |
parent | 3ad5243b188820ef61624ea761344d8fd3391e49 (diff) | |
download | dexon-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar dexon-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.gz dexon-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.bz2 dexon-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.lz dexon-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.xz dexon-182d484aa70bcd5b22117f02333b1fd3b1535dcb.tar.zst dexon-182d484aa70bcd5b22117f02333b1fd3b1535dcb.zip |
Merge pull request #817 from tgerring/rpcglog
Remove old logger from RPC pkg
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/api.go b/rpc/api.go index 085d8cf27..5930a4c7b 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -63,8 +63,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err case "eth_mining": *reply = api.xeth().IsMining() case "eth_gasPrice": - v := xeth.DefaultGas() - *reply = newHexData(v.Bytes()) + v := xeth.DefaultGasPrice() + *reply = newHexNum(v.Bytes()) case "eth_accounts": *reply = api.xeth().Accounts() case "eth_blockNumber": @@ -489,6 +489,6 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err return NewNotImplementedError(req.Method) } - rpclogger.DebugDetailf("Reply: %T %s", reply, reply) + glog.V(logger.Detail).Infof("Reply: %T %s\n", reply, reply) return nil } |