#336 exception parse json #675
1 changed files with 4 additions and 3 deletions
|
|
@ -926,10 +926,11 @@ fc::http::reply bitcoin_rpc_client::send_post_request(std::string body, bool sho
|
|||
fc::http::reply reply = conn.request("POST", url, body, fc::http::headers{authorization});
|
||||
|
||||
if (show_log) {
|
||||
ilog("### Request URL: ${url}", ("url", url));
|
||||
ilog("### Request: ${body}", ("body", body));
|
||||
ilog("### Request URL: ${url}", ("url", url));
|
||||
ilog("### Request: ${body}", ("body", body));
|
||||
std::stringstream ss(std::string(reply.body.begin(), reply.body.end()));
|
||||
ilog("### Response: ${ss}", ("ss", ss.str()));
|
||||
ilog("### Response status: ${status}", ("status", reply.status));
|
||||
ilog("### Response: ${ss}", ("ss", ss.str()));
|
||||
}
|
||||
|
||||
return reply;
|
||||
|
|
|
|||
Loading…
Reference in a new issue