diff --git a/database.py b/database.py index 93ef91d..8967a7d 100644 --- a/database.py +++ b/database.py @@ -641,6 +641,9 @@ async def save_item_metadata( Returns a dict with the item metadata (compatible with old JSON format). """ + import logging + logger = logging.getLogger(__name__) + logger.info(f"save_item_metadata: cid={cid[:16] if cid else None}..., actor_id={actor_id}, item_type={item_type}") # Build metadata JSONB for extra fields metadata = {} if tags: @@ -677,6 +680,7 @@ async def save_item_metadata( ) item_type_id = row["id"] + logger.info(f"save_item_metadata: Created/updated item_type id={item_type_id} for cid={cid[:16]}...") # Handle pinning if pinned and pin_reason: