[openapi] remove redundant exception stack trace[4/N] (#37157)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
Ning Xie
2026-03-17 23:06:25 +08:00
committed by GitHub
parent 2ff0ad9694
commit c9e5096256

View File

@@ -371,7 +371,7 @@ async def generation_error_handler(req: Request, exc: GenerationError):
async def exception_handler(req: Request, exc: Exception):
if req.app.state.args.log_error_stack:
logger.exception(
logger.error(
"Exception caught. Request id: %s",
req.state.request_metadata.request_id
if hasattr(req.state, "request_metadata")