Ajouter un log pour afficher le chemin de la vidéo dans la route de récupération

This commit is contained in:
2025-02-12 11:38:57 +01:00
parent 41c877f072
commit 7652a1ea64

View File

@@ -271,6 +271,7 @@ router.get('/videos/file/:video_id', (req, res) => {
return res.status(400).json({ error: 'Video not yet produced' });
}
const videoPath = video.video_path;
console.log('Video path:', videoPath);
fs.access(videoPath, fs.constants.F_OK, (err) => {
if (err) {
console.error('Video not found:', err);