Merge pull request #26 from sprockets/update-log-level

Change log level on decode failure log
This commit is contained in:
dave-shawley 2020-05-04 16:49:50 -04:00 committed by GitHub
commit 1d9ccad27c
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