Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
fastapi validation error log string fix (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Sep 9, 2023
1 parent c2fe15d commit 224541f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wyvern/web_frameworks/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async def post(
# profiler.stop()
# profiler.print(show_all=True)
except ValidationError as e:
logger.exception(f"Unexpected error error={e} request_payload={json}")
logger.exception(f"Validation error error={e} request_payload={json}")
raise HTTPException(status_code=422, detail=e.errors())
except Exception as e:
logger.exception(f"Unexpected error error={e} request_payload={json}")
Expand Down

0 comments on commit 224541f

Please sign in to comment.