Avoid logging of the user-raised GRPCError on the server-side

This commit is contained in:
Vladimir Magamedov 2019-08-29 11:12:09 +03:00
parent 5d9d744a05
commit 249a3d3284
1 changed files with 2 additions and 0 deletions

View File

@ -415,6 +415,8 @@ async def request_handler(
content_type=content_type,
)
await method_func(stream)
except GRPCError:
raise
except asyncio.TimeoutError:
if wrapper.cancel_failed:
log.exception('Failed to handle cancellation')