diff options
author | Filipp Lepalaan <f@230.to> | 2013-05-15 09:12:52 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-05-15 09:12:52 +0300 |
commit | 28b982e69b87c57d5d520b59c68f7bc32bbf9ea4 (patch) | |
tree | 3594538399d533029c69ef1d73fdeadbec76ddc8 | |
parent | efe35f2bfd9357b0aa6fc68169062d0c0227fb12 (diff) | |
download | py-gsxws-28b982e69b87c57d5d520b59c68f7bc32bbf9ea4.tar.gz py-gsxws-28b982e69b87c57d5d520b59c68f7bc32bbf9ea4.tar.bz2 py-gsxws-28b982e69b87c57d5d520b59c68f7bc32bbf9ea4.zip |
Log URL of SOAP submit to debug log
-rw-r--r-- | gsxws/core.py | 5 |
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() |