Skip to content

Commit 2566fb8

Browse files
committed
fix:调整日志记录方式
1 parent 88dcd58 commit 2566fb8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

astrbot/core/provider/sources/openai_source.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ async def _query_stream(
321321
try:
322322
state.handle_chunk(chunk)
323323
except Exception as e:
324+
logger.debug(
325+
f"Saving chunk state error: {type(e).__name__}: {e}.",
326+
exc_info=True,
327+
)
324328
logger.warning(f"Saving chunk state error: {e}")
325329
if len(chunk.choices) == 0:
326330
continue

0 commit comments

Comments
 (0)