diff --git a/stormpath/http.py b/stormpath/http.py index d7f237e..6d80787 100644 --- a/stormpath/http.py +++ b/stormpath/http.py @@ -24,10 +24,6 @@ from .error import Error -import logging -log = logging.getLogger(__name__) - - class HttpExecutor(object): """Handles the actual HTTP requests to the Stormpath service. @@ -103,8 +99,6 @@ def pause_exponentially(self, retries): delay = min(delay, self.MAX_BACKOFF_IN_MILLISECONDS) - log.debug("Retryable condition detected, will retry in %s ms, attempt number: %s" % (delay, retries)) - # sleep in seconds time.sleep(delay / float(1000)) @@ -160,10 +154,6 @@ def request(self, method, url, data=None, params=None, headers=None, retry_count else: raise Error({'developerMessage': str(e)}) - log.debug('HttpExecutor.request(method={}, url={}, params={}, data={}, headers={}) -> [{}] {}'.format( - method, url, repr(params), repr(data), repr(headers), r.status_code, r.text - )) - if r.status_code in [301, 302] and 'location' in r.headers: if not r.headers['location'].startswith(self.base_url): message = 'Trying to redirect outside of API base url: {}'.format(r.headers['location'])