add debug messages
This commit is contained in:
parent
acf4f13a7e
commit
7fb9d64251
|
|
@ -139,14 +139,9 @@ 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 base_url] [%s]", self.base_url)
|
||||
logging.error("[patch_v2 patch_data] [%s]", patch_data)
|
||||
|
||||
# Run the GET
|
||||
response = requests.patch(
|
||||
f'{self.base_url}/api/v1/events/{event_key}',
|
||||
|
|
@ -155,8 +150,6 @@ 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