회기 스트림 턴 실패를 서버 로그에도 남긴다
SSE error 이벤트만 보내고 기록하지 않아, 생성 실패가 나도 API 로그에 흔적이 없었다(2026-10-27 E2E 재현 중 원인 추적이 막힘). 사용자에게 보내는 내용은 그대로다.
This commit is contained in:
parent
d9d0654f1c
commit
c907f1473e
1 changed files with 2 additions and 0 deletions
|
|
@ -2246,6 +2246,8 @@ async def stream_turn(
|
|||
yield {"event": "ping", "data": "{}"}
|
||||
last_beat = now
|
||||
except Exception as exc:
|
||||
# SSE error 이벤트만 보내면 서버 로그에 흔적이 없어 생성 실패 원인을 추적할 수 없다.
|
||||
logger.exception("회기 스트림 턴 실패: session=%s", session_id)
|
||||
yield {
|
||||
"event": "error",
|
||||
"data": json.dumps({"detail": str(exc)}, ensure_ascii=False),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue