diff --git a/app/Libraries/CurlUtils.php b/app/Libraries/CurlUtils.php index 8a74b3e053da..d6ce9d0e37c0 100644 --- a/app/Libraries/CurlUtils.php +++ b/app/Libraries/CurlUtils.php @@ -29,6 +29,11 @@ class CurlUtils curl_setopt_array($curl, $opts); $response = curl_exec($curl); + + if ($error = curl_error($curl)) { + Utils::logError('CURL Error #' . curl_errno($curl) . ': ' . $error); + } + curl_close($curl); return $response;