Skip to content

Commit f8f51e1

Browse files
committed
add additional log with shortcode
1 parent 4af7f3c commit f8f51e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/scraping/event_processor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ async def process(self, posts_data, cutoff_date):
100100
url = post.get("url")
101101
ig_handle = post.get("ownerUsername") or "UNKNOWN"
102102
shortcode = url.strip("/").split("/")[-1] if url else "UNKNOWN"
103+
104+
logger.info(f"[{ig_handle}] [{shortcode}] Processing Instagram post...")
103105

104106
if not url or "/p/" not in url:
105107
logger.info(f"[{ig_handle}] Skipping: Invalid URL format ({url})")

0 commit comments

Comments
 (0)