summaryrefslogtreecommitdiff
path: root/meetingtools/ac
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2014-04-11 16:19:11 +0200
committerJohan Lundberg <lundberg@nordu.net>2014-04-11 16:19:11 +0200
commitf88dfc2ce4e88b11d56b40eea5f46007196b7498 (patch)
tree81a856e38e8d2523d4c20a1c14e0847a19e175f3 /meetingtools/ac
parent007a0edf58d96bc8f12bf7801c05144e93d55694 (diff)
Moved debug logging to error logging.
Diffstat (limited to 'meetingtools/ac')
-rw-r--r--meetingtools/ac/api.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/meetingtools/ac/api.py b/meetingtools/ac/api.py
index 1a8cb87..b744d9b 100644
--- a/meetingtools/ac/api.py
+++ b/meetingtools/ac/api.py
@@ -78,7 +78,7 @@ class ACPResult():
raise ACPException, self.status
def get_principal(self):
- logger.debug(lxml.etree.tostring(self.et))
+ #logger.debug(lxml.etree.tostring(self.et))
return _first_or_none(self.et.xpath('//principal'))
def pretty_print(self):
@@ -158,11 +158,13 @@ class ACPClient():
#cache = ACPClient.CacheWrapper(get_cache('default'))
cache = None
h = httplib2.Http(cache, disable_ssl_certificate_validation=True)
- logging.debug(url)
+
resp, content = h.request(url, "GET")
- logging.debug(pformat(resp))
- logging.debug(pformat(content))
+
if resp.status != 200:
+ logging.error(url)
+ logging.error(pformat(resp))
+ logging.error(pformat(content))
raise ACPException(resp.reason)
if resp.has_key('set-cookie'):