mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 12:35:50 +00:00
Do not use cout.
This commit is contained in:
@@ -36,7 +36,7 @@ RPCServer::RPCServer(boost::asio::io_service& io_service , NetworkOPs* nopNetwor
|
|||||||
|
|
||||||
void RPCServer::connected()
|
void RPCServer::connected()
|
||||||
{
|
{
|
||||||
//std::cout << "RPC request" << std::endl;
|
//std::cerr << "RPC request" << std::endl;
|
||||||
if (mSocket.remote_endpoint().address().to_string()=="127.0.0.1") mRole = RPCHandler::ADMIN;
|
if (mSocket.remote_endpoint().address().to_string()=="127.0.0.1") mRole = RPCHandler::ADMIN;
|
||||||
else mRole = RPCHandler::GUEST;
|
else mRole = RPCHandler::GUEST;
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ std::string RPCServer::handleRequest(const std::string& requestStr)
|
|||||||
RPCHandler mRPCHandler(mNetOps);
|
RPCHandler mRPCHandler(mNetOps);
|
||||||
|
|
||||||
cLog(lsTRACE) << valParams;
|
cLog(lsTRACE) << valParams;
|
||||||
Json::Value result = mRPCHandler.doCommand(strMethod, valParams,mRole);
|
Json::Value result = mRPCHandler.doCommand(strMethod, valParams, mRole);
|
||||||
cLog(lsTRACE) << result;
|
cLog(lsTRACE) << result;
|
||||||
|
|
||||||
std::string strReply = JSONRPCReply(result, Json::Value(), id);
|
std::string strReply = JSONRPCReply(result, Json::Value(), id);
|
||||||
@@ -167,7 +167,7 @@ bool RPCServer::parseAcceptRate(const std::string& sAcceptRate)
|
|||||||
|
|
||||||
void RPCServer::handle_write(const boost::system::error_code& e)
|
void RPCServer::handle_write(const boost::system::error_code& e)
|
||||||
{
|
{
|
||||||
//std::cout << "async_write complete " << e << std::endl;
|
//std::cerr << "async_write complete " << e << std::endl;
|
||||||
|
|
||||||
if (!e)
|
if (!e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user