Log curl_exec error