Unverified Commit 54382867 authored by Stas's avatar Stas Committed by GitHub

Merge pull request #1961 from divine/fix_failed_job_exception

[Fix] Format exception to string in failed jobs
parents 6b291d74 6121afab
......@@ -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