diff --git a/apps/bamboohr/views.py b/apps/bamboohr/views.py index b7226a7..687ab56 100644 --- a/apps/bamboohr/views.py +++ b/apps/bamboohr/views.py @@ -91,8 +91,11 @@ def post(self, request, *args, **kwargs): api_token = request.data['input']['api_token'] sub_domain = request.data['input']['subdomain'] + logger.info('Bamboo HR Connection Request Payload | Content: {{api_token: {0}, sub_domain: {1}}}'.format(api_token, sub_domain)) + bamboohrsdk = BambooHrSDK(api_token=api_token, sub_domain=sub_domain) timeoff = bamboohrsdk.time_off.get() + logger.info('Bamboo HR Connection Timeoff Response | Content: {0}'.format(timeoff)) if timeoff.get('timeOffTypes', None): bamboohr, _ = BambooHr.objects.update_or_create(org=org, defaults={ 'api_token': api_token,