Skip to content
Snippets Groups Projects
Commit f848ebbb authored by vlorentz's avatar vlorentz
Browse files

api/asynchronous: Do not log/report client exception

This mirrors the behavior of the synchronous server.

In practice, this means the objstorage won't log ObjNotFoundError or
report them to Sentry.
parent 5a898b2d
No related branches found
No related tags found
1 merge request!292api/asynchronous: Do not log/report client exceptions
......@@ -70,11 +70,11 @@ async def error_middleware(app, handler):
except Exception as e:
if isinstance(e, aiohttp.web.HTTPException):
raise
logger.exception(e)
res = exception_to_dict(e)
if isinstance(e, app.client_exception_classes):
status = 400
else:
logger.exception(e)
status = 500
return encode_data_server(res, status=status)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment