Issue 2279: Log JSON RPC requests and responses when --log_level=message is provided to soltest

This commit is contained in:
seusher 2017-05-17 12:57:55 -07:00
parent b923196a85
commit d546c2873a

View File

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