From a73b5236e6f13a0a9b18ca0fafe5f4958320bdb2 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 23 Sep 2022 08:58:11 -0500 Subject: [PATCH] GH-186 Log std::exception for http calls at debug level. --- plugins/http_plugin/http_plugin.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/http_plugin/http_plugin.cpp b/plugins/http_plugin/http_plugin.cpp index 6e91cf0020..e896f0ab60 100644 --- a/plugins/http_plugin/http_plugin.cpp +++ b/plugins/http_plugin/http_plugin.cpp @@ -515,9 +515,8 @@ class http_plugin_impl : public std::enable_shared_from_this { } catch (std::exception& e) { error_results results{500, "Internal Service Error", error_results::error_info(fc::exception( FC_LOG_MESSAGE( error, e.what())), verbose_http_errors)}; cb( 500, fc::time_point::maximum(), fc::variant( results )); - fc_elog( logger(), "STD Exception encountered while processing ${api}.${call}", - ("api", api_name)( "call", call_name ) ); - fc_dlog( logger(), "Exception Details: ${e}", ("e", e.what()) ); + fc_dlog( logger(), "STD Exception encountered while processing ${api}.${call}: ${e}", + ("api", api_name)("call", call_name)("e", e.what()) ); } catch (...) { error_results results{500, "Internal Service Error", error_results::error_info(fc::exception( FC_LOG_MESSAGE( error, "Unknown Exception" )), verbose_http_errors)};