add debug messages

This commit is contained in:
Nolan Burfield 2024-04-07 14:49:11 -07:00
parent 71bc0a9e32
commit b2e8ef21db
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -9,7 +9,7 @@ with open('README.md', 'r') as f:
setup(
name='lib_af_api',
version='1.0.1',
version='1.0.2',
author='',
author_email='',
description='',