Merge pull request #62 from cogutvalera/valera_issue_929
RPC logging level inconsistency #929
This commit is contained in:
commit
ed168a4844
1 changed files with 2 additions and 1 deletions
|
|
@ -226,6 +226,7 @@ namespace fc { namespace http {
|
||||||
|
|
||||||
fc::async([current_con, request_body, con] {
|
fc::async([current_con, request_body, con] {
|
||||||
std::string response = current_con->on_http(request_body);
|
std::string response = current_con->on_http(request_body);
|
||||||
|
idump((response));
|
||||||
con->set_body( response );
|
con->set_body( response );
|
||||||
con->set_status( websocketpp::http::status_code::ok );
|
con->set_status( websocketpp::http::status_code::ok );
|
||||||
con->send_http_response();
|
con->send_http_response();
|
||||||
|
|
@ -348,7 +349,7 @@ namespace fc { namespace http {
|
||||||
auto con = _server.get_con_from_hdl(hdl);
|
auto con = _server.get_con_from_hdl(hdl);
|
||||||
wdump(("server")(con->get_request_body()));
|
wdump(("server")(con->get_request_body()));
|
||||||
auto response = current_con->on_http( con->get_request_body() );
|
auto response = current_con->on_http( con->get_request_body() );
|
||||||
|
idump((response));
|
||||||
con->set_body( response );
|
con->set_body( response );
|
||||||
con->set_status( websocketpp::http::status_code::ok );
|
con->set_status( websocketpp::http::status_code::ok );
|
||||||
} catch ( const fc::exception& e )
|
} catch ( const fc::exception& e )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue