mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Improving error reporting API
This commit is contained in:
parent
09650123d7
commit
3e4df4ff4f
@ -753,15 +753,17 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
Log::info($opts);
|
|
||||||
|
|
||||||
curl_setopt_array($curl, $opts);
|
curl_setopt_array($curl, $opts);
|
||||||
$response = curl_exec($curl);
|
$response = curl_exec($curl);
|
||||||
curl_close($curl);
|
curl_close($curl);
|
||||||
|
|
||||||
|
Log::info($response);
|
||||||
|
|
||||||
$encodedString = strip_tags($response);
|
$encodedString = strip_tags($response);
|
||||||
$pdfString = Utils::decodePDF($encodedString);
|
$pdfString = Utils::decodePDF($encodedString);
|
||||||
|
|
||||||
|
Log::info($pdfString);
|
||||||
|
|
||||||
if ( ! $pdfString || strlen($pdfString) < 200) {
|
if ( ! $pdfString || strlen($pdfString) < 200) {
|
||||||
Utils::logError("PhantomJSCloud - failed to create pdf: {$encodedString}");
|
Utils::logError("PhantomJSCloud - failed to create pdf: {$encodedString}");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user