From 8476a6f2107e02795b57da087890bc811f872b7d Mon Sep 17 00:00:00 2001 From: Alexander Karateev Date: Wed, 8 Jul 2020 14:09:38 +0300 Subject: [PATCH] add logging exceptions --- graphql/execution/executors/asyncio_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphql/execution/executors/asyncio_utils.py b/graphql/execution/executors/asyncio_utils.py index 9c8f88da..48cea448 100644 --- a/graphql/execution/executors/asyncio_utils.py +++ b/graphql/execution/executors/asyncio_utils.py @@ -1,3 +1,4 @@ +import logging from asyncio import ensure_future, CancelledError from rx import AnonymousObservable @@ -26,4 +27,5 @@ async def iterate_asyncgen(asyncgen, observer): except CancelledError: pass except Exception as e: + logging.exception(e) observer.on_error(e)