Add debug logging for recipe filtering
Shows owner and actor_id values when filtering recipes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -86,6 +86,9 @@ class RecipeService:
|
|||||||
# means the recipe is shared/public and visible to all users
|
# means the recipe is shared/public and visible to all users
|
||||||
if actor_id is None or owner is None or owner == actor_id:
|
if actor_id is None or owner is None or owner == actor_id:
|
||||||
recipes.append(recipe)
|
recipes.append(recipe)
|
||||||
|
logger.info(f"Recipe {cid[:16]}... included (owner={owner}, actor={actor_id})")
|
||||||
|
else:
|
||||||
|
logger.info(f"Recipe {cid[:16]}... filtered out (owner={owner}, actor={actor_id})")
|
||||||
elif recipe and recipe.get("error"):
|
elif recipe and recipe.get("error"):
|
||||||
logger.warning(f"Recipe {cid[:16]}... has error: {recipe.get('error')}")
|
logger.warning(f"Recipe {cid[:16]}... has error: {recipe.get('error')}")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user