diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:55:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:55:13 +0200 |
commit | 1cc9774668827c1255e4cd0775cb781c7f73051c (patch) | |
tree | 6ee5099e069e35ca100e74ac1de54ba94113a9b3 /server/models/video | |
parent | 42b40636991b97fe818007fab19091764fc5db73 (diff) | |
download | PeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.tar.gz PeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.tar.zst PeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.zip |
Fix incorrect error logs
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/thumbnail.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<Partial<AttributesOnly<ThumbnailModel> | |||
127 | 127 | ||
128 | // Don't block the transaction | 128 | // Don't block the transaction |
129 | instance.removeThumbnail() | 129 | instance.removeThumbnail() |
130 | .catch(err => logger.error('Cannot remove thumbnail file %s.', instance.filename, err)) | 130 | .catch(err => logger.error('Cannot remove thumbnail file %s.', instance.filename, { err })) |
131 | } | 131 | } |
132 | 132 | ||
133 | static loadByFilename (filename: string, thumbnailType: ThumbnailType): Promise<MThumbnail> { | 133 | static loadByFilename (filename: string, thumbnailType: ThumbnailType): Promise<MThumbnail> { |