From b8a315933f21ad3971ffabf3df1a070e27d4da31 Mon Sep 17 00:00:00 2001 From: muhammad-ammar Date: Tue, 27 Oct 2020 22:59:03 +0500 Subject: [PATCH] add log to get insights about why data sharing consent is not required --- openedx/features/enterprise_support/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openedx/features/enterprise_support/api.py b/openedx/features/enterprise_support/api.py index ad9ca31787..0d853a8ffe 100644 --- a/openedx/features/enterprise_support/api.py +++ b/openedx/features/enterprise_support/api.py @@ -105,6 +105,12 @@ class ConsentApiClient(object): # No Enterprise record exists, but we're already enrolled in a course. So, go ahead and proceed. if enrollment_exists and not response.get('exists', False): + LOGGER.info( + '[ENTERPRISE DSC] No Consent Required. APIParams: [%s], APIResponse: [%s], EnrollmentExists: [%s]', + kwargs, + response, + enrollment_exists, + ) return False # In all other cases, just trust the Consent API.