Improving error reporting API
This commit is contained in:
parent
09650123d7
commit
3e4df4ff4f
1 changed files with 4 additions and 2 deletions
|
|
@ -753,15 +753,17 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||
],
|
||||
];
|
||||
|
||||
Log::info($opts);
|
||||
|
||||
curl_setopt_array($curl, $opts);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
|
||||
Log::info($response);
|
||||
|
||||
$encodedString = strip_tags($response);
|
||||
$pdfString = Utils::decodePDF($encodedString);
|
||||
|
||||
Log::info($pdfString);
|
||||
|
||||
if ( ! $pdfString || strlen($pdfString) < 200) {
|
||||
Utils::logError("PhantomJSCloud - failed to create pdf: {$encodedString}");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue