Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Commit

Permalink
osetreni lgoovani v pripadu vypadku API
Browse files Browse the repository at this point in the history
  • Loading branch information
David Alexa committed Nov 13, 2020
1 parent c64fdef commit 8761205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Balikobot/Balikobot.php
Original file line number Diff line number Diff line change
Expand Up @@ -1586,8 +1586,10 @@ private function call($request, $shipper, array $data = [], $url = null)
$jsonRes = json_decode($response, true);
if (is_null($jsonRes)) {
$jsonRes = [];
$this->logger->critical('Result of ' . $targetUrl, $jsonRes);
} else {
$this->logger->info('Result of ' . $targetUrl, $jsonRes);
}
$this->logger->info('Result of ' . $targetUrl, $jsonRes);

return json_decode($response, true);
}
Expand Down

0 comments on commit 8761205

Please sign in to comment.