mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Fix error logging
This commit is contained in:
parent
0dcf9a14be
commit
d5b7d9110d
24 changed files with 57 additions and 41 deletions
|
@ -53,7 +53,7 @@ class JobQueue {
|
|||
this.jobQueue.setMaxListeners(15)
|
||||
|
||||
this.jobQueue.on('error', err => {
|
||||
logger.error('Error in job queue.', err)
|
||||
logger.error('Error in job queue.', { err })
|
||||
process.exit(-1)
|
||||
})
|
||||
this.jobQueue.watchStuckJobs(5000)
|
||||
|
@ -111,7 +111,7 @@ class JobQueue {
|
|||
const now = new Date().getTime()
|
||||
kue.Job.rangeByState('complete', 0, -1, 'asc', (err, jobs) => {
|
||||
if (err) {
|
||||
logger.error('Cannot get jobs when removing old jobs.', err)
|
||||
logger.error('Cannot get jobs when removing old jobs.', { err })
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue