MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / rt_curl_debug_callback

Function rt_curl_debug_callback

src/runtime.cpp:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151#ifndef NDEBUG
152static int rt_curl_debug_callback(CURL* handle, curl_infotype type, char* data, size_t size, void* userdata)
153{
154 (void)handle;
155 (void)type;
156 (void)userdata;
157 std::string s(data, size);
158 logging::log_debug(LOG_TAG, "CURL DBG: %s", s.c_str());
159 return 0;
160}
161#endif
162
163runtime::runtime(std::string const& endpoint) : runtime(endpoint, "AWS_Lambda_Cpp/" + std::string(get_version())) {}

Callers

nothing calls this directly

Calls 1

log_debugFunction · 0.85

Tested by

no test coverage detected