From 961b72b24b739bb18d94ab8ca8ba5c0e728e0378 Mon Sep 17 00:00:00 2001 From: dakerboul Date: Mon, 10 Mar 2025 15:18:57 +0100 Subject: [PATCH] =?UTF-8?q?Ajouter=20des=20logs=20pour=20afficher=20les=20?= =?UTF-8?q?anciens=20et=20nouveaux=20ID=20de=20projet=20et=20intervalles?= =?UTF-8?q?=20lors=20de=20l'arr=C3=AAt=20de=20la=20proc=C3=A9dure=20de=20c?= =?UTF-8?q?apture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/cameraRoutes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/cameraRoutes.js b/routes/cameraRoutes.js index e34042e..9e4fe8e 100644 --- a/routes/cameraRoutes.js +++ b/routes/cameraRoutes.js @@ -82,10 +82,12 @@ function startProcedure(projectId, interval) { function stopProcedure() { oldProjectID = captureProjectID; oldInterval = captureInterval; + console.log('Ancien Projet : ' + oldProjectID + ', Ancien Intervalle : ' + oldInterval); // Application du reset captureProjectID = -1; captureInterval = 0; + console.log('Nouveau Projet : ' + captureProjectID + ', Nouvel Intervalle : ' + captureInterval); console.log('Arrêt de la procédure de capture'); return { message: 'Procédure de capture arrêtée avec succès, projet ID: ' + oldProjectID + ', interval: ' + oldInterval + ' minutes.' };