Unverified Commit c9e50962 authored by Ning Xie's avatar Ning Xie Committed by GitHub
Browse files

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


Signed-off-by: default avatarAndy Xie <andy.xning@gmail.com>
parent 2ff0ad96
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment