From 3649b13fe5cd580849a3009349be8a3aee14dcdd Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 8 Feb 2017 18:12:03 +0200 Subject: [PATCH] Log local PhantomJS error --- app/Libraries/CurlUtils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Libraries/CurlUtils.php b/app/Libraries/CurlUtils.php index ccd118e32063..263631fe5985 100644 --- a/app/Libraries/CurlUtils.php +++ b/app/Libraries/CurlUtils.php @@ -57,11 +57,11 @@ class CurlUtils // Send the request $client->send($request, $response); - + if ($response->getStatus() === 200) { return $response->getContent(); } else { - //$response->getStatus(); + Utils::logError('Local PhantomJS Error: ' . $response->getStatus() . ' - ' . $url); return false; } }