From 0b54131f6533953f0d4f45eabf3cb5a58126e0cd Mon Sep 17 00:00:00 2001 From: amberheilman Date: Mon, 4 May 2020 16:46:51 -0400 Subject: [PATCH] Change log level on decode failure log Don't print tracebacks when failing to decode the body. --- sprockets/mixins/mediatype/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sprockets/mixins/mediatype/content.py b/sprockets/mixins/mediatype/content.py index 593db2a..a21fa2b 100644 --- a/sprockets/mixins/mediatype/content.py +++ b/sprockets/mixins/mediatype/content.py @@ -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