Merge pull request #62 from cogutvalera/valera_issue_929

RPC logging level inconsistency #929
This commit is contained in:
Abit 2018-07-23 21:06:28 +00:00 committed by GitHub
commit ed168a4844
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,6 +226,7 @@ namespace fc { namespace http {
fc::async([current_con, request_body, con] {
std::string response = current_con->on_http(request_body);
idump((response));
con->set_body( response );
con->set_status( websocketpp::http::status_code::ok );
con->send_http_response();
@ -348,7 +349,7 @@ namespace fc { namespace http {
auto con = _server.get_con_from_hdl(hdl);
wdump(("server")(con->get_request_body()));
auto response = current_con->on_http( con->get_request_body() );
idump((response));
con->set_body( response );
con->set_status( websocketpp::http::status_code::ok );
} catch ( const fc::exception& e )