aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/ffmpeg-utils.ts
diff options
context:
space:
mode:
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}