1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Fix error logging

This commit is contained in:
Chocobozzz 2018-03-26 15:54:13 +02:00
parent 0dcf9a14be
commit d5b7d9110d
No known key found for this signature in database
GPG key ID: 583A612D890159BE
24 changed files with 57 additions and 41 deletions

View file

@ -92,7 +92,7 @@ async function updateRemoteVideo (actor: ActorModel, activity: ActivityUpdate) {
// Don't block on request
generateThumbnailFromUrl(videoInstance, videoAttributesToUpdate.icon)
.catch(err => logger.warn('Cannot generate thumbnail of %s.', videoAttributesToUpdate.id, err))
.catch(err => logger.warn('Cannot generate thumbnail of %s.', videoAttributesToUpdate.id, { err }))
// Remove old video files
const videoFileDestroyTasks: Bluebird<void>[] = []
@ -117,7 +117,7 @@ async function updateRemoteVideo (actor: ActorModel, activity: ActivityUpdate) {
}
// This is just a debug because we will retry the insert
logger.debug('Cannot update the remote video.', err)
logger.debug('Cannot update the remote video.', { err })
throw err
}
}
@ -176,7 +176,7 @@ async function updateRemoteActor (actor: ActorModel, activity: ActivityUpdate) {
}
// This is just a debug because we will retry the insert
logger.debug('Cannot update the remote account.', err)
logger.debug('Cannot update the remote account.', { err })
throw err
}
}