diff --git a/graphql/execution/executor.py b/graphql/execution/executor.py index 14d45c51..ceb37ff3 100644 --- a/graphql/execution/executor.py +++ b/graphql/execution/executor.py @@ -445,12 +445,13 @@ def resolve_or_error( try: return executor.execute(resolve_fn, source, info, **args) except Exception as e: - logger.exception( - "An error occurred while resolving field {}.{}".format( - info.parent_type.name, info.field_name + if not isinstance(e, GraphQLError): + logger.exception( + "An error occurred while resolving field {}.{}".format( + info.parent_type.name, info.field_name + ) ) - ) - e.stack = sys.exc_info()[2] # type: ignore + e.stack = sys.exc_info()[2] # type: ignore return e