write response to error file
This commit is contained in:
@@ -351,9 +351,12 @@ def get_token(code):
|
||||
|
||||
response = s.send(prepped)
|
||||
|
||||
print response.body
|
||||
print ''
|
||||
print response.text
|
||||
with open("media/c2authorize.log","a") as f:
|
||||
f.write(reponse+"\n")
|
||||
f.write(reponse.status_code+"\n")
|
||||
f.write(reponse.text+"\n")
|
||||
f.write(response.json+"\n\n")
|
||||
|
||||
|
||||
token_json = response.json()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user