X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fthumbnail.ts;h=f33bd31799b302a904591cb2fdcfb7d4cbcae1f6;hb=0c9668f77901e7540e2c7045eb0f2974a4842a69;hp=05c58cf19cc57b5bd494b9b82f37dffb0a06ad54;hpb=c3edc5b074aa4bb1861ed0a94d3713808e87170f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/thumbnail.ts b/server/models/video/thumbnail.ts index 05c58cf19..f33bd3179 100644 --- a/server/models/video/thumbnail.ts +++ b/server/models/video/thumbnail.ts @@ -127,7 +127,7 @@ export class ThumbnailModel extends Model // 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 {