Skip to content

Commit

Permalink
Merge pull request #478 from Financial-Times/captions-logger
Browse files Browse the repository at this point in the history
Add logging when appending captions
  • Loading branch information
GlynnPhillips authored Nov 29, 2023
2 parents 42f4abb + 15b5745 commit dcf53e6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion server/lib/download/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,14 @@ module.exports = exports = class VideoDownload extends ArticleDownload {

this.captionFiles = captionFiles;

captionFiles.forEach(({ file, name }) => this.append(file, { name }));
captionFiles.forEach(({ file, name }) => {
log.info('appendCaptions', {
name,
file
});

return this.append(file, { name })
});

}
catch (error) {
Expand Down

0 comments on commit dcf53e6

Please sign in to comment.