add debug messages
This commit is contained in:
parent
71bc0a9e32
commit
b2e8ef21db
|
|
@ -139,9 +139,13 @@ class Event():
|
|||
'Authorization': f'Bearer {self.jwt}'
|
||||
}
|
||||
|
||||
logging.error("[patch_v2 headers] [%s]", headers)
|
||||
|
||||
# Set the key to the patch data
|
||||
patch_data['key'] = event_key
|
||||
|
||||
logging.error("[patch_v2 patch_data] [%s]", patch_data)
|
||||
|
||||
# Run the GET
|
||||
response = requests.patch(
|
||||
f'{self.base_url}/api/v1/events/{event_key}',
|
||||
|
|
@ -150,6 +154,8 @@ class Event():
|
|||
json=patch_data
|
||||
)
|
||||
|
||||
logging.error("[patch_v2 response.text] [%s]", response.text)
|
||||
|
||||
# Good response. Return Event
|
||||
if response.ok:
|
||||
return response.json(), response.status_code
|
||||
|
|
|
|||
Loading…
Reference in New Issue