aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/ffmpeg-utils.ts
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/helpers/ffmpeg-utils.ts
parent0dcf9a14be3f8668fe5ee65cf0365d457b4d1499 (diff)
downloadPeerTube-d5b7d9110dd637a7f67ce9e430145314812a8df1.tar.gz
PeerTube-d5b7d9110dd637a7f67ce9e430145314812a8df1.tar.zst
PeerTube-d5b7d9110dd637a7f67ce9e430145314812a8df1.zip
Fix error logging
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r--server/helpers/ffmpeg-utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 8f9a03c26..bfc942fa3 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -64,12 +64,12 @@ async function generateImageFromVideoFile (fromPath: string, folder: string, ima
64 const destination = join(folder, imageName) 64 const destination = join(folder, imageName)
65 await processImage({ path: pendingImagePath }, destination, size) 65 await processImage({ path: pendingImagePath }, destination, size)
66 } catch (err) { 66 } catch (err) {
67 logger.error('Cannot generate image from video %s.', fromPath, err) 67 logger.error('Cannot generate image from video %s.', fromPath, { err })
68 68
69 try { 69 try {
70 await unlinkPromise(pendingImagePath) 70 await unlinkPromise(pendingImagePath)
71 } catch (err) { 71 } catch (err) {
72 logger.debug('Cannot remove pending image path after generation error.', err) 72 logger.debug('Cannot remove pending image path after generation error.', { err })
73 } 73 }
74 } 74 }
75} 75}