diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-01-21 12:31:32 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-01-29 11:14:02 +1100 |
commit | 8f30350d03ed2e05b24a7a26a25f2a14ee1d443d (patch) | |
tree | b99c0a6d1c48f8797d6a8ff6d20f91c692ea489d | |
parent | Allow the number of incoming connections to be limited (diff) | |
download | monero-8f30350d03ed2e05b24a7a26a25f2a14ee1d443d.tar.xz |
Fix method name in invoke_http_json_rpc
Previously, the method name was printed as an exmpty string because
the input string had already been moved with `std::move`.
-rw-r--r-- | contrib/epee/include/storages/http_abstract_invoke.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/storages/http_abstract_invoke.h b/contrib/epee/include/storages/http_abstract_invoke.h index 6517f1253..d93084ab0 100644 --- a/contrib/epee/include/storages/http_abstract_invoke.h +++ b/contrib/epee/include/storages/http_abstract_invoke.h @@ -115,7 +115,7 @@ namespace epee } if(resp_t.error.code || resp_t.error.message.size()) { - LOG_ERROR("RPC call of \"" << method_name << "\" returned error: " << resp_t.error.code << ", message: " << resp_t.error.message); + LOG_ERROR("RPC call of \"" << req_t.method << "\" returned error: " << resp_t.error.code << ", message: " << resp_t.error.message); return false; } result_struct = resp_t.result; |