From 5416fbf7d39237345acfa71b9a42e5ba18157bcb Mon Sep 17 00:00:00 2001 From: hbobenicio Date: Sat, 20 Aug 2022 19:26:11 -0300 Subject: [PATCH] improving error log for runtime::get_next() curl failure --- src/runtime.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runtime.cpp b/src/runtime.cpp index 1232471..47ead0e 100644 --- a/src/runtime.cpp +++ b/src/runtime.cpp @@ -240,7 +240,10 @@ runtime::next_outcome runtime::get_next() if (curl_code != CURLE_OK) { logging::log_debug(LOG_TAG, "CURL returned error code %d - %s", curl_code, curl_easy_strerror(curl_code)); - logging::log_error(LOG_TAG, "Failed to get next invocation. No Response from endpoint"); + logging::log_error( + LOG_TAG, + "Failed to get next invocation. No Response from endpoint \"%s\"", + m_endpoints[Endpoints::NEXT].c_str()); return aws::http::response_code::REQUEST_NOT_MADE; }