Skip to content

Commit a0fe49e

Browse files
authored
Improve error logging for API status errors
1 parent c38b939 commit a0fe49e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/seclab_taskflow_agent/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ async def _run_streamed():
383383
await render_model_output(f"** 🤖❗ API Status Error: {e}\n",
384384
async_task=async_task,
385385
task_id=task_id)
386-
logging.error(f"Bad Request: {e}")
386+
logging.error(f"API Status Error: Status={e.status_code}, Response={e.response}")
387387

388388
if async_task:
389389
await flush_async_output(task_id)

0 commit comments

Comments
 (0)