]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔇 Remove error log when parsing malformed JSON body as it's a client error (#1351)
authorDylan Anthony <43723790+dbanty@users.noreply.github.com>
Fri, 12 Jun 2020 20:44:40 +0000 (16:44 -0400)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 20:44:40 +0000 (22:44 +0200)
fastapi/routing.py

index 3ac420e6e229633efe9e54a02a9a10e5d3216e93..dab751a09e9d66fb0eaf0a842bb43f86e312c681 100644 (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