X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fcommon%2Fhttp.py;h=9207cbc4c13a4903e4664f9e631bd4b364909fa2;hb=6be1a7f4c1c6ccced45402e9aadddad813eef2a7;hp=fa5eae7279ede31ff8594a3a666432e8f03bbbab;hpb=95686bbc69ded243c346f94dceb0bee567572fb7;p=osm%2Fosmclient.git diff --git a/osmclient/common/http.py b/osmclient/common/http.py index fa5eae7..9207cbc 100644 --- a/osmclient/common/http.py +++ b/osmclient/common/http.py @@ -17,6 +17,7 @@ from io import BytesIO import pycurl import json +import logging class Http(object): @@ -25,6 +26,7 @@ class Http(object): self._user = user self._password = password self._http_header = None + self._logger = logging.getLogger("osmclient") def set_http_header(self, header): self._http_header = header @@ -40,7 +42,6 @@ class Http(object): return curl_cmd def get_cmd(self, endpoint): - data = BytesIO() curl_cmd = self._get_curl_cmd(endpoint) curl_cmd.setopt(pycurl.HTTPGET, 1)