🔇 Remove error log when parsing malformed JSON body as it's a client error (#1351)

This commit is contained in:
Dylan Anthony 2020-06-12 16:44:40 -04:00 committed by GitHub
parent 807522c616
commit 2351fb5623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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