aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-26 15:54:13 +0200
committerChocobozzz <me@florianbigard.com>2018-03-26 16:04:14 +0200
commitd5b7d9110dd637a7f67ce9e430145314812a8df1 (patch)
treed019ef5fe68b14d7e5ad11953b6c1f4811669ce6 /server/models/video
parent0dcf9a14be3f8668fe5ee65cf0365d457b4d1499 (diff)
downloadPeerTube-d5b7d9110dd637a7f67ce9e430145314812a8df1.tar.gz
PeerTube-d5b7d9110dd637a7f67ce9e430145314812a8df1.tar.zst
PeerTube-d5b7d9110dd637a7f67ce9e430145314812a8df1.zip
Fix error logging
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index f43b73e49..13bf0b6a2 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -473,7 +473,7 @@ export class VideoModel extends Model<VideoModel> {
473 473
474 return Promise.all(tasks) 474 return Promise.all(tasks)
475 .catch(err => { 475 .catch(err => {
476 logger.error('Some errors when removing files of video %s in after destroy hook.', instance.uuid, err) 476 logger.error('Some errors when removing files of video %s in after destroy hook.', instance.uuid, { err })
477 }) 477 })
478 } 478 }
479 479
@@ -1213,7 +1213,7 @@ export class VideoModel extends Model<VideoModel> {
1213 1213
1214 } catch (err) { 1214 } catch (err) {
1215 // Auto destruction... 1215 // Auto destruction...
1216 this.destroy().catch(err => logger.error('Cannot destruct video after transcoding failure.', err)) 1216 this.destroy().catch(err => logger.error('Cannot destruct video after transcoding failure.', { err }))
1217 1217
1218 throw err 1218 throw err
1219 } 1219 }