def execute_graphql_request(self, data, query, variables, operation_name, show_graphiql=False): result = GraphQLView.execute_graphql_request(self, data, query, variables, operation_name, show_graphiql) if isinstance(result, ExecutionResult) and result.invalid: for error in result.errors: logging.error('Exception on %s [%s]' % (request.path, request.method), exc_info=error) return result