Browse Source

print method in client log

pull/456/head
Ethan Buchman 9 years ago
parent
commit
fbc5ac8052
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      client/http_client.go

+ 2
- 2
client/http_client.go View File

@ -53,7 +53,7 @@ func CallHTTP_JSONRPC(remote string, method string, params []interface{}, result
}
requestBytes := wire.JSONBytes(request)
requestBuf := bytes.NewBuffer(requestBytes)
log.Info(Fmt("RPC request to %v: %v", remote, string(requestBytes)))
log.Info(Fmt("RPC request to %v (%v): %v", remote, method, string(requestBytes)))
httpResponse, err := http.Post(remote, "text/json", requestBuf)
if err != nil {
return nil, err
@ -72,7 +72,7 @@ func CallHTTP_URI(remote string, method string, params map[string]interface{}, r
if err != nil {
return nil, err
}
log.Info(Fmt("URI request to %v: %v", remote, values))
log.Info(Fmt("URI request to %v (%v): %v", remote, method, values))
resp, err := http.PostForm(remote+method, values)
if err != nil {
return nil, err


Loading…
Cancel
Save