Zenaight commited on
Commit
b78b80a
·
verified ·
1 Parent(s): 87f208c

Upload 5 files

Browse files
Files changed (1) hide show
  1. main.py +4 -1
main.py CHANGED
@@ -31,7 +31,10 @@ async def forward_to_rumas(b64_str: str):
31
  async with httpx.AsyncClient(timeout=60) as client:
32
  resp = await client.post(RUMAS_API_URL, json=payload)
33
  resp.raise_for_status()
34
- body = resp.json()
 
 
 
35
  print(f"[RUMAS] ✔ {resp.status_code} {body}")
36
 
37
  # OPTIONAL: notify user (comment out if you prefer silent)
 
31
  async with httpx.AsyncClient(timeout=60) as client:
32
  resp = await client.post(RUMAS_API_URL, json=payload)
33
  resp.raise_for_status()
34
+ # ── log the full JSON response (truncated to 300 chars for brevity) ──
35
+ data = resp.json()
36
+ print(f"[RUMAS] ✔ 200 {json.dumps(data)[:300]}…")
37
+ body = data
38
  print(f"[RUMAS] ✔ {resp.status_code} {body}")
39
 
40
  # OPTIONAL: notify user (comment out if you prefer silent)