From f182c281fe695f0a297433e6f0b567e8b243b26e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 1 Dec 2016 15:03:12 +0200 Subject: [PATCH] Log cURL errors --- app/Libraries/CurlUtils.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Libraries/CurlUtils.php b/app/Libraries/CurlUtils.php index 8a74b3e053..d6ce9d0e37 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;