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

Fix error logging

This commit is contained in:
Chocobozzz 2017-07-07 18:26:12 +02:00
parent 709756b8e1
commit ad0997adfb
21 changed files with 49 additions and 49 deletions

View file

@ -90,7 +90,7 @@ function reportVideoAbuse (req: express.Request, res: express.Response) {
})
.then((videoInstance: VideoInstance) => logger.info('Abuse report for video %s created.', videoInstance.name))
.catch(err => {
logger.debug('Cannot update the video.', { error: err })
logger.debug('Cannot update the video.', err)
throw err
})
}