Update routes/logs.py
Browse files- routes/logs.py +3 -3
routes/logs.py
CHANGED
@@ -56,9 +56,9 @@ async def get_onboarding_logs():
|
|
56 |
try:
|
57 |
async with session.get(log_api_url, headers=SUPABASE_ROLE_HEADERS, params=params) as response:
|
58 |
if response.status != 200:
|
59 |
-
|
60 |
-
logger.error(f"Erro ao consultar logs: {
|
61 |
-
raise HTTPException(status_code=
|
62 |
|
63 |
return await response.json()
|
64 |
|
|
|
56 |
try:
|
57 |
async with session.get(log_api_url, headers=SUPABASE_ROLE_HEADERS, params=params) as response:
|
58 |
if response.status != 200:
|
59 |
+
error_body = await response.text()
|
60 |
+
logger.error(f"Erro ao consultar logs: {error_body}")
|
61 |
+
raise HTTPException(status_code=response.status, detail=error_body)
|
62 |
|
63 |
return await response.json()
|
64 |
|