From f88dfc2ce4e88b11d56b40eea5f46007196b7498 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Fri, 11 Apr 2014 16:19:11 +0200 Subject: Moved debug logging to error logging. --- meetingtools/ac/api.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'meetingtools/ac') 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'): -- cgit v1.1