From b50caab763737ec66494ba2691d8f5f45eb673bb Mon Sep 17 00:00:00 2001 From: Maor Friedman Date: Wed, 15 Jan 2020 11:01:57 +0200 Subject: [PATCH] replace print with log --- graphqlclient/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphqlclient/client.py b/graphqlclient/client.py index b25de54..a21b446 100644 --- a/graphqlclient/client.py +++ b/graphqlclient/client.py @@ -1,5 +1,6 @@ from six.moves import urllib import json +import logging class GraphQLClient: def __init__(self, endpoint): @@ -29,6 +30,5 @@ def _send(self, query, variables): response = urllib.request.urlopen(req) return response.read().decode('utf-8') except urllib.error.HTTPError as e: - print((e.read())) - print('') + logging.debug((e.read())) raise e