Commit d5a7bac2 authored by Ditty's avatar Ditty Committed by vagrant

Fix format exception in failed jobs

Format exception to string so it can be saved correctly. See https://github.com/laravel/framework/blob/6.x/src/Illuminate/Queue/Failed/DatabaseFailedJobProvider.php#L59
parent c0966a95
......@@ -12,12 +12,15 @@ class MongoFailedJobProvider extends DatabaseFailedJobProvider
* @param string $connection
* @param string $queue
* @param string $payload
* @param \Exception $exception
* @return void
*/
public function log($connection, $queue, $payload, $exception)
{
$failed_at = Carbon::now()->getTimestamp();
$exception = (string) $exception;
$this->getTable()->insert(compact('connection', 'queue', 'payload', 'failed_at', 'exception'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment