mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-12-28 11:24:12 +00:00
Change log level on decode failure log
Don't print tracebacks when failing to decode the body.
This commit is contained in:
parent
e40449b632
commit
0b54131f65
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue