mirror of https://github.com/tiangolo/fastapi.git
🔇 Remove error log when parsing malformed JSON body as it's a client error (#1351)
This commit is contained in:
parent
807522c616
commit
2351fb5623
|
|
@ -179,7 +179,6 @@ def get_request_handler(
|
|||
if body_bytes:
|
||||
body = await request.json()
|
||||
except Exception as e:
|
||||
logger.error(f"Error getting request body: {e}")
|
||||
raise HTTPException(
|
||||
status_code=400, detail="There was an error parsing the body"
|
||||
) from e
|
||||
|
|
|
|||
Loading…
Reference in New Issue