Add debug logging to Beli refresh to inspect API response shape

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 20:06:13 -04:00
parent 4c55168d52
commit 2674a49574
+4
View File
@@ -59,6 +59,10 @@ async def refresh_profile(profile_id: str) -> dict:
results = await fetch_user_rankings(
access_token, profile.beli_user_id, category
)
if results:
logger.info(
"Beli %s sample item keys: %s", category, list(results[0].keys())
)
for item in results:
biz = extract_business(item)
if not biz: