Change log level on decode failure log

Don't print tracebacks when failing to decode the body.
This commit is contained in:
amberheilman 2020-05-04 16:46:51 -04:00 committed by GitHub
parent e40449b632
commit 0b54131f65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,7 +336,7 @@ class ContentMixin:
try:
self._request_body = handler.from_bytes(self.request.body)
except Exception:
self._logger.exception('failed to decode request body')
self._logger.error('failed to decode request body')
raise web.HTTPError(400, 'failed to decode request')
return self._request_body