diff --git a/components/Header.vue b/components/Header.vue index 4ae1458..9f342d6 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -110,7 +110,7 @@ async function checkCompletedProfile() { completed_profil.value = response.complete_profile; } catch (error) { - console.error(error); + // console.error(error); } } diff --git a/components/auth/authSignIn.vue b/components/auth/authSignIn.vue index 52f0cc4..eecf088 100644 --- a/components/auth/authSignIn.vue +++ b/components/auth/authSignIn.vue @@ -181,7 +181,7 @@ async function authentification() { } } catch (error) { // message.value = "An error occurred during sign in"; - console.error("Failed to sign in:", error); + // console.error("Failed to sign in:", error); } } diff --git a/components/user/userMail.vue b/components/user/userMail.vue index ed145c0..969fa99 100644 --- a/components/user/userMail.vue +++ b/components/user/userMail.vue @@ -88,7 +88,7 @@ async function submit() { if (error.data && error.data.message) { message.value = error.data.message; } - console.error("Erreur lors de la mise à jour du nom d'utilisateur :", error); + // console.error("Erreur lors de la mise à jour du nom d'utilisateur :", error); } } diff --git a/components/user/userPassword.vue b/components/user/userPassword.vue index a7febc7..88aa235 100644 --- a/components/user/userPassword.vue +++ b/components/user/userPassword.vue @@ -81,7 +81,7 @@ async function submit() { }); message.value = "Password updated successfully"; } catch (error) { - console.error("Erreur lors de la mise à jour du nom d'utilisateur :", error); + // console.error("Erreur lors de la mise à jour du nom d'utilisateur :", error); } } diff --git a/components/user/userUsername.vue b/components/user/userUsername.vue index c406cc9..69bf48d 100644 --- a/components/user/userUsername.vue +++ b/components/user/userUsername.vue @@ -89,7 +89,7 @@ async function submit() { if ((error as any).data && (error as any).data.message) { message.value = (error as any).data.message; } - console.error( + // console.error( "Erreur lors de la mise à jour du nom d'utilisateur :", error, ); diff --git a/middleware/auth.global.ts b/middleware/auth.global.ts index 851c391..a2be6bd 100644 --- a/middleware/auth.global.ts +++ b/middleware/auth.global.ts @@ -16,6 +16,6 @@ export default defineNuxtRouteMiddleware(async (to) => { return navigateTo("/"); } } catch (error) { - console.error(error); + // console.error(error); } }); diff --git a/nuxt.config.ts b/nuxt.config.ts index 3be56fb..cea6fbe 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,7 +3,7 @@ import fs from "fs"; function get_from_env(field: string): string { const env = process.env[field]; if (!env) { - console.error(field, "ENV VARIABLE ISN'T SET !!!"); + // console.error(field, "ENV VARIABLE ISN'T SET !!!"); } return env || ""; } diff --git a/pages/modify_profile.vue b/pages/modify_profile.vue index 62d5b8d..ecd55eb 100644 --- a/pages/modify_profile.vue +++ b/pages/modify_profile.vue @@ -123,7 +123,7 @@ onMounted(async () => { console.log(response); } catch (error) { - console.error(error); + // console.error(error); } // get update from other components await updateName(); diff --git a/pages/search.vue b/pages/search.vue index 64eb5b7..2655031 100644 --- a/pages/search.vue +++ b/pages/search.vue @@ -219,7 +219,7 @@ const searchMovies = async () => { checkAndLoadMoreContent(); } catch (error) { loading.value = false; - console.error("Error searching movies:", error); + // console.error("Error searching movies:", error); } finally { loading.value = false; } diff --git a/pages/user_profiles.vue b/pages/user_profiles.vue index 7ba8436..a5f3f2f 100644 --- a/pages/user_profiles.vue +++ b/pages/user_profiles.vue @@ -20,7 +20,7 @@ onMounted(async () => { // @ts-ignore users.value = response.users; } catch (error) { - console.error(error); + // console.error(error); } $eventBus.emit("CompleteProfil", true); // Emit the event to show the nav bar diff --git a/server/api/auth/[...].ts b/server/api/auth/[...].ts index 692ed16..d6d0aaa 100644 --- a/server/api/auth/[...].ts +++ b/server/api/auth/[...].ts @@ -82,7 +82,7 @@ export default NuxtAuthHandler({ return null; } } catch (error) { - console.error("Authentication error:", error); + // console.error("Authentication error:", error); return null; } }, diff --git a/server/api/auth/register-auth.post.ts b/server/api/auth/register-auth.post.ts index f76bf67..63f1848 100644 --- a/server/api/auth/register-auth.post.ts +++ b/server/api/auth/register-auth.post.ts @@ -76,7 +76,7 @@ export default defineEventHandler(async (event) => { }); } } catch (error) { - console.error("Error while creating user", error); + // console.error("Error while creating user", error); return { message: "An error occurred", status: 400 }; } diff --git a/server/api/movies/[id]/index.get.ts b/server/api/movies/[id]/index.get.ts index 06f30df..a31101c 100644 --- a/server/api/movies/[id]/index.get.ts +++ b/server/api/movies/[id]/index.get.ts @@ -191,7 +191,7 @@ export default defineEventHandler(async (event) => { return movie_infos; } catch (error) { - console.error("Error in movie/id search:", error); + // console.error("Error in movie/id search:", error); return error; } }); diff --git a/server/api/movies/[id]/stream.get.ts b/server/api/movies/[id]/stream.get.ts index cb6f109..c3f84ce 100644 --- a/server/api/movies/[id]/stream.get.ts +++ b/server/api/movies/[id]/stream.get.ts @@ -183,8 +183,8 @@ function convert_to_webm( // ); // }) .on("error", (err, _stdout, stderr) => { - console.error("An error occurred: " + err.message); - console.error("FFmpeg stderr: " + stderr); + // console.error("An error occurred: " + err.message); + // console.error("FFmpeg stderr: " + stderr); }) .on("end", () => { // process.stdout.write(`Processing: 100% done\r`); diff --git a/server/api/movies/genres.get.ts b/server/api/movies/genres.get.ts index e21e4af..6bf181e 100644 --- a/server/api/movies/genres.get.ts +++ b/server/api/movies/genres.get.ts @@ -22,7 +22,7 @@ export default defineEventHandler(async (event) => { return data; } catch (error) { - console.error("Error in genre fetching:", error); + // console.error("Error in genre fetching:", error); return createError({ statusCode: 400, statusMessage: "Error fetching genres", diff --git a/server/api/movies/index.get.ts b/server/api/movies/index.get.ts index c067ba2..940b203 100644 --- a/server/api/movies/index.get.ts +++ b/server/api/movies/index.get.ts @@ -35,7 +35,7 @@ export default defineEventHandler(async (event) => { return data; } catch (error) { - console.error("Error in movie search:", error); + // console.error("Error in movie search:", error); return createError({ statusCode: 400, statusMessage: "Error fetching movies infos", diff --git a/server/api/movies/search.get.ts b/server/api/movies/search.get.ts index 86adf5e..b7e29b1 100644 --- a/server/api/movies/search.get.ts +++ b/server/api/movies/search.get.ts @@ -51,7 +51,7 @@ export default defineEventHandler(async (event) => { return data; } catch (error) { - console.error("Error in movie search:", error); + // console.error("Error in movie search:", error); return createError({ statusCode: 400, statusMessage: "Error fetching movies", diff --git a/server/api/users/modify/picture.ts b/server/api/users/modify/picture.ts index b77a1a8..d3e30f8 100644 --- a/server/api/users/modify/picture.ts +++ b/server/api/users/modify/picture.ts @@ -124,7 +124,7 @@ export default defineEventHandler(async (event) => { status: 200, }; } catch (error: any) { - console.error("Error during file upload:", error); + // console.error("Error during file upload:", error); throw createError({ statusCode: error.statusCode || 500, message: error.message || "Internal server error", diff --git a/server/api/users/profileImage/[imageName]/index.ts b/server/api/users/profileImage/[imageName]/index.ts index 214a43e..340372f 100644 --- a/server/api/users/profileImage/[imageName]/index.ts +++ b/server/api/users/profileImage/[imageName]/index.ts @@ -34,7 +34,7 @@ export default defineEventHandler(async (event: H3Event) => { if (error.code === 'ENOENT') { throw createError({ statusCode: 404, message: 'Image not found' }); } - console.error("Error serving image:", error); + // console.error("Error serving image:", error); throw createError({ statusCode: 400, message: 'Internal server error' }); } -}); \ No newline at end of file +});