add Logging

This commit is contained in:
Marko
2024-07-31 14:07:45 +02:00
parent 966905a3bf
commit e6371751eb

View File

@@ -246,6 +246,11 @@ class Hiltes
# Send request. # Send request.
$result = curl_exec($ch); $result = curl_exec($ch);
curl_close($ch); curl_close($ch);
if ($auth) {
$this->logger->info('Result ' . $result);
}
return $result; return $result;
} }
@@ -372,7 +377,7 @@ class Hiltes
try { try {
//Status 3 für erfolgreich exportiert //Status 3 für erfolgreich exportiert
$order->setStatus(3); $order->setStatus(3);
$order->setHiltes($t); // $order->setHiltes($t);
$this->orderRepository->update($order, true); $this->orderRepository->update($order, true);
} catch (\Exception $exception) { } catch (\Exception $exception) {
@@ -386,7 +391,7 @@ class Hiltes
try { try {
//Status 4 für Fehler //Status 4 für Fehler
$order->setStatus(4); $order->setStatus(4);
$order->setHiltes($t); //$order->setHiltes($t);
$this->orderRepository->update($order, true); $this->orderRepository->update($order, true);
} catch (\Exception $exception) { } catch (\Exception $exception) {