Skip to content

Commit 9b8daab

Browse files
authored
improving error log for runtime::get_next() curl failure (#157)
1 parent fab4a6e commit 9b8daab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/runtime.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ runtime::next_outcome runtime::get_next()
240240

241241
if (curl_code != CURLE_OK) {
242242
logging::log_debug(LOG_TAG, "CURL returned error code %d - %s", curl_code, curl_easy_strerror(curl_code));
243-
logging::log_error(LOG_TAG, "Failed to get next invocation. No Response from endpoint");
243+
logging::log_error(
244+
LOG_TAG,
245+
"Failed to get next invocation. No Response from endpoint \"%s\"",
246+
m_endpoints[Endpoints::NEXT].c_str());
244247
return aws::http::response_code::REQUEST_NOT_MADE;
245248
}
246249

0 commit comments

Comments
 (0)