From aaff33beb3ac1def48a18cd6f23f986f5c36e4e1 Mon Sep 17 00:00:00 2001 From: EDDragonWolf Date: Wed, 21 Feb 2018 04:52:46 -0800 Subject: [PATCH] Added log output of RPC request and response --- src/supernode/DAPI_RPC_Server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/supernode/DAPI_RPC_Server.cpp b/src/supernode/DAPI_RPC_Server.cpp index c6580c412..3f7fddb53 100644 --- a/src/supernode/DAPI_RPC_Server.cpp +++ b/src/supernode/DAPI_RPC_Server.cpp @@ -52,7 +52,7 @@ bool supernode::DAPI_RPC_Server::handle_http_request(const epee::net_utils::http bool supernode::DAPI_RPC_Server::HandleRequest(const epee::net_utils::http::http_request_info& query_info, epee::net_utils::http::http_response_info& response_info, connection_context& m_conn_context) { if( query_info.m_URI!=rpc_command::DAPI_URI ) return false; - + LOG_PRINT_L0(query_info.m_body); uint64_t ticks = epee::misc_utils::get_tick_count(); epee::serialization::portable_storage ps; @@ -106,6 +106,7 @@ bool supernode::DAPI_RPC_Server::HandleRequest(const epee::net_utils::http::http break; } } + LOG_PRINT_L0(response_info.m_body); if(!handler) { LOG_PRINT_L4("handler not found for: "<Process(ps, response_info.m_body) ) { LOG_PRINT_L4("Fail to process (ret false): "<