diff --git a/backend/src/models/recipeModel.ts b/backend/src/models/recipeModel.ts index f6256fa..dd81ae4 100644 --- a/backend/src/models/recipeModel.ts +++ b/backend/src/models/recipeModel.ts @@ -12,6 +12,7 @@ class RecipeModel { async getAllRecipes(): Promise { try { + logger.info("index page view") return await this.prisma.recipes.findMany(); } catch (err) { console.error("Error fetching all recipes:", err); @@ -45,6 +46,7 @@ class RecipeModel { instruction: step.instruction, })), }; + logger.info("recipe page view", { recipe_id: data.details.id, recipe_name: data.details.name }) return data; } catch (err) { console.log("Error finding recipe:", err);