Skip to content

Commit 5198cf9

Browse files
committed
use logger.exception
1 parent b794c00 commit 5198cf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lmdeploy/serve/core/async_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def safe_run(self, handle, session, **kwargs):
268268
metrics_processor.increase_api_routed_requests()
269269
yield generator
270270
except (Exception, asyncio.CancelledError, GeneratorExit) as e: # noqa
271-
logger.error(f'[safe_run] session {session.session_id} exception caught: {type(e).__name__} {e}')
271+
logger.exception(f'[safe_run] session {session.session_id} exception caught: {e}')
272272
await session.async_abort()
273273
if self.backend == 'pytorch':
274274
await handle.async_end(session.session_id)

0 commit comments

Comments
 (0)