Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
54382867
Unverified
Commit
54382867
authored
Feb 23, 2020
by
Stas
Committed by
GitHub
Feb 23, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1961 from divine/fix_failed_job_exception
[Fix] Format exception to string in failed jobs
parents
6b291d74
6121afab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
MongoFailedJobProvider.php
...enssegers/Mongodb/Queue/Failed/MongoFailedJobProvider.php
+3
-0
No files found.
src/Jenssegers/Mongodb/Queue/Failed/MongoFailedJobProvider.php
View file @
54382867
...
@@ -12,12 +12,15 @@ class MongoFailedJobProvider extends DatabaseFailedJobProvider
...
@@ -12,12 +12,15 @@ class MongoFailedJobProvider extends DatabaseFailedJobProvider
* @param string $connection
* @param string $connection
* @param string $queue
* @param string $queue
* @param string $payload
* @param string $payload
* @param \Exception $exception
* @return void
* @return void
*/
*/
public
function
log
(
$connection
,
$queue
,
$payload
,
$exception
)
public
function
log
(
$connection
,
$queue
,
$payload
,
$exception
)
{
{
$failed_at
=
Carbon
::
now
()
->
getTimestamp
();
$failed_at
=
Carbon
::
now
()
->
getTimestamp
();
$exception
=
(
string
)
$exception
;
$this
->
getTable
()
->
insert
(
compact
(
'connection'
,
'queue'
,
'payload'
,
'failed_at'
,
'exception'
));
$this
->
getTable
()
->
insert
(
compact
(
'connection'
,
'queue'
,
'payload'
,
'failed_at'
,
'exception'
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment