#336 exception parse json #675

Merged
vampik merged 4 commits from bug/336-exception-parse-json into develop 2022-04-06 23:23:49 +00:00
Showing only changes of commit 4a5cbb1153 - Show all commits

View file

@ -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;