diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-11 18:59:51 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-11 18:59:51 +0800 |
commit | ef6c7bd726f78e4134d207b58f1efe504bbad40e (patch) | |
tree | e7d6589314ec1490c45adb2ac5b94423a250eb06 /rpc/util.go | |
parent | c6af5f0a275608ea6c797ef826e6090885f24eac (diff) | |
parent | d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9 (diff) | |
download | dexon-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar dexon-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.gz dexon-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.bz2 dexon-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.lz dexon-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.xz dexon-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.zst dexon-ef6c7bd726f78e4134d207b58f1efe504bbad40e.zip |
Merge pull request #300 from tgerring/jsonrpc
Allow RPC ID to be string or null
Diffstat (limited to 'rpc/util.go')
-rw-r--r-- | rpc/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/util.go b/rpc/util.go index 509d9a17d..679d83754 100644 --- a/rpc/util.go +++ b/rpc/util.go @@ -47,7 +47,6 @@ func (self JsonWrapper) ParseRequestBody(req *http.Request) (RpcRequest, error) // Convert JSON to native types d := json.NewDecoder(req.Body) - // d.UseNumber() defer req.Body.Close() err := d.Decode(&reqParsed) @@ -55,6 +54,7 @@ func (self JsonWrapper) ParseRequestBody(req *http.Request) (RpcRequest, error) rpclogger.Errorln("Error decoding JSON: ", err) return reqParsed, err } + rpclogger.DebugDetailf("Parsed request: %s", reqParsed) return reqParsed, nil |