diff --git a/frameworks/js/napi/http/http_exec/src/http_exec.cpp b/frameworks/js/napi/http/http_exec/src/http_exec.cpp index eddc37d856e0d4a64aa151e72fb5ea58951b9c08..eceea5a62e9326dc68837b9caba6e715eea1e07b 100755 --- a/frameworks/js/napi/http/http_exec/src/http_exec.cpp +++ b/frameworks/js/napi/http/http_exec/src/http_exec.cpp @@ -351,18 +351,6 @@ bool HttpExec::RequestWithoutCache(RequestContext *context) } }); context->SetCurlHeaderList(MakeHeaders(vec)); - - static auto logCallback = +[](CURL *curl, - curl_infotype type, - char *data, - size_t size, - void *userptr) { - if (type == CURLINFO_STATE) { - NETSTACK_LOGI("CURL_TRACE: type = %{public}d, data = %{public}s", type, data); - } - }; - curl_easy_setopt(handle, CURLOPT_VERBOSE, 1); - curl_easy_setopt(handle, CURLOPT_DEBUGFUNCTION, logCallback); if (!SetOption(handle, context, context->GetCurlHeaderList())) { NETSTACK_LOGE("set option failed"); return false;