X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fthumbnail.ts;h=f33bd31799b302a904591cb2fdcfb7d4cbcae1f6;hb=2f63f629add5d24f8c01f309c7cae43b667b0c2a;hp=05c58cf19cc57b5bd494b9b82f37dffb0a06ad54;hpb=3318147300b4f998adf728eb0a5a14a4c1829c51;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 {