#336 - Show "Response status" in send_post_request

This commit is contained in:
Vlad Dobromyslov 2022-04-05 09:04:39 +03:00
parent 4809619892
commit 4a5cbb1153

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;