Spaces:
Sleeping

axeronis commited on
Commit
5f721d1
·
1 Parent(s): 3bcea62

chore(debug): add entry-point logs for webhooks

Browse files
backend/app/api/meta_webhooks.py CHANGED
@@ -72,6 +72,7 @@ async def handle_meta_webhook(
72
  """Handle incoming events from Meta (WhatsApp & Instagram)."""
73
  try:
74
  data = await request.json()
 
75
  except Exception:
76
  raise HTTPException(status_code=400, detail="Invalid JSON")
77
 
 
72
  """Handle incoming events from Meta (WhatsApp & Instagram)."""
73
  try:
74
  data = await request.json()
75
+ logger.info(f"📩 Meta Webhook for Tenant {tenant_id}: {list(data.keys())}")
76
  except Exception:
77
  raise HTTPException(status_code=400, detail="Invalid JSON")
78
 
backend/app/api/telegram_webhook.py CHANGED
@@ -36,6 +36,8 @@ async def handle_telegram_webhook(
36
 
37
  # Check if it's a message
38
  if "message" not in data:
 
 
39
  return {"status": "ignored"}
40
 
41
  message_data = data["message"]
 
36
 
37
  # Check if it's a message
38
  if "message" not in data:
39
+ # Debug log for ignored updates
40
+ logger.info(f"📩 Telegram Update (Ignored): {list(data.keys())}")
41
  return {"status": "ignored"}
42
 
43
  message_data = data["message"]