Move the DEBUG_ON_RESPONSE call to Requester.__requestEncode

This commit is contained in:
Vincent Jacques
2013-08-23 19:05:53 +02:00
parent 020a3c9917
commit fb6980ce36
+2 -4
View File
@@ -172,10 +172,6 @@ class Requester:
def __check(self, status, responseHeaders, output):
output = self.__structuredFromJson(output)
# #193: Shouldn't next line be in __requestEncode? (__check is not called on all requests)
# Log frame
self.DEBUG_ON_RESPONSE(status, responseHeaders, output)
if status >= 400:
raise self.__createException(status, output)
return responseHeaders, output
@@ -255,6 +251,8 @@ class Requester:
if "x-oauth-scopes" in responseHeaders:
self.oauth_scopes = responseHeaders["x-oauth-scopes"].split(", ")
self.DEBUG_ON_RESPONSE(status, responseHeaders, output)
return status, responseHeaders, output
def __requestRaw(self, verb, url, requestHeaders, input):