Merge pull request #2280 from seusher/soltest_rpc_request_logging

Issue 2279: Log JSON RPC requests and responses when --log_level=mess…
This commit is contained in:
Yoichi Hirai 2017-05-18 11:13:43 +02:00 committed by GitHub
commit 6f9428e900

View File

@ -316,9 +316,9 @@ Json::Value RPCSession::rpcCall(string const& _methodName, vector<string> const&
request += "],\"id\":" + to_string(m_rpcSequence) + "}";
++m_rpcSequence;
// cout << "Request: " << request << endl;
BOOST_TEST_MESSAGE("Request: " + request);
string reply = m_ipcSocket.sendRequest(request);
// cout << "Reply: " << reply << endl;
BOOST_TEST_MESSAGE("Reply: " + reply);
Json::Value result;
BOOST_REQUIRE(Json::Reader().parse(reply, result, false));