mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-23 16:43:01 +00:00
print method in client log
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user