diff --git a/app/src/Service/Queue.php b/app/src/Service/Queue.php index 3d082a7..0513554 100644 --- a/app/src/Service/Queue.php +++ b/app/src/Service/Queue.php @@ -68,12 +68,24 @@ class Queue extends Ideal\Service return false; } } catch (Exception $exception) { - $this->logger->warning("Could not run job {$job->id}", ['exception' => $exception]); + $this->logger->warning("Could not run job {$job->id}", ['exception' => [ + 'code' => $exception->getCode(), + 'message' => $exception->getMessage(), + 'file' => $exception->getFile(), + 'line' => $exception->getLine(), + 'trace' => $exception->getTraceAsString(), + ]]); $job->retries++; try { $this->jobService->update($job); } catch (Update $exception) { - $this->logger->error($exception->getMessage(), ['job' => $job, 'exception' => $exception]); + $this->logger->error($exception->getMessage(), ['job' => $job, 'exception' => [ + 'code' => $exception->getCode(), + 'message' => $exception->getMessage(), + 'file' => $exception->getFile(), + 'line' => $exception->getLine(), + 'trace' => $exception->getTraceAsString(), + ]]); } return false; }