]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/thumbnail.ts
Fix incorrect error logs
[github/Chocobozzz/PeerTube.git] / server / models / video / thumbnail.ts
index 05c58cf19cc57b5bd494b9b82f37dffb0a06ad54..f33bd31799b302a904591cb2fdcfb7d4cbcae1f6 100644 (file)
@@ -127,7 +127,7 @@ export class ThumbnailModel extends Model<Partial<AttributesOnly<ThumbnailModel>
 
     // Don't block the transaction
     instance.removeThumbnail()
-            .catch(err => logger.error('Cannot remove thumbnail file %s.', instance.filename, err))
+            .catch(err => logger.error('Cannot remove thumbnail file %s.', instance.filename, { err }))
   }
 
   static loadByFilename (filename: string, thumbnailType: ThumbnailType): Promise<MThumbnail> {