Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

add logs

Abhinav9e9298b5e3db
diff --git a/apps/photos/src/components/PhotoFrame.tsx b/apps/photos/src/components/PhotoFrame.tsx
index cb48209fa2..65e5da96d2 100644
--- a/apps/photos/src/components/PhotoFrame.tsx
+++ b/apps/photos/src/components/PhotoFrame.tsx
@@ -538,7 +538,9 @@ const PhotoFrame = ({
// ignore
}
try {
- addLogLine(`[${item.id}] new file getConvertedVideo request`);
+ addLogLine(
+ `[${item.id}] new file getConvertedVideo request- ${item.metadata.title}}`
+ );
fetching[item.id] = true;
if (!filesStore.has(item.id)) {
addLogLine(
diff --git a/apps/photos/src/utils/file/index.ts b/apps/photos/src/utils/file/index.ts
index 9df39df16e..7d04939cb2 100644
--- a/apps/photos/src/utils/file/index.ts
+++ b/apps/photos/src/utils/file/index.ts
@@ -411,13 +411,18 @@ export async function getPlayableVideo(
if (isPlayable && !forceConvert) {
return videoBlob;
} else {
- addLogLine('video format not supported, converting it');
+ addLogLine(
+ 'video format not supported, converting it name:',
+ videoNameTitle
+ );
const mp4ConvertedVideo = await ffmpegService.convertToMP4(
new File([videoBlob], videoNameTitle)
);
+ addLogLine('video successfully converted', videoNameTitle);
return new Blob([await mp4ConvertedVideo.arrayBuffer()]);
}
} catch (e) {
+ addLogLine('video conversion failed', videoNameTitle);
logError(e, 'video conversion failed');
return null;
}