aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/core.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-15 09:12:52 +0300
committerFilipp Lepalaan <f@230.to>2013-05-15 09:12:52 +0300
commit28b982e69b87c57d5d520b59c68f7bc32bbf9ea4 (patch)
tree3594538399d533029c69ef1d73fdeadbec76ddc8 /gsxws/core.py
parentefe35f2bfd9357b0aa6fc68169062d0c0227fb12 (diff)
downloadpy-gsxws-28b982e69b87c57d5d520b59c68f7bc32bbf9ea4.tar.gz
py-gsxws-28b982e69b87c57d5d520b59c68f7bc32bbf9ea4.tar.bz2
py-gsxws-28b982e69b87c57d5d520b59c68f7bc32bbf9ea4.zip
Log URL of SOAP submit to debug log
Diffstat (limited to 'gsxws/core.py')
-rw-r--r--gsxws/core.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gsxws/core.py b/gsxws/core.py
index 59e562d..9eed125 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -218,6 +218,9 @@ class GsxRequest(object):
self._url = GSX_URL.format(env=GSX_HOSTS[GSX_ENV], region=GSX_REGION)
parsed = urlparse(self._url)
+ logging.debug(self._url)
+ logging.debug(xmldata)
+
ws = httplib.HTTPSConnection(parsed.netloc)
ws.putrequest("POST", parsed.path)
ws.putheader("User-Agent", "py-gsxws 0.9")
@@ -249,8 +252,6 @@ class GsxRequest(object):
request.append(self.data)
data = ET.tostring(self.env, "UTF-8")
- logging.debug(data)
-
res = self._send(method, data)
xml = res.read()