Merge pull request #19899 from edx/waheed/LEARNER-6643-add-debug-log

Added log for credit providers fetched from cache.
This commit is contained in:
Waheed Ahmed
2019-02-28 18:01:51 +05:00
committed by GitHub

View File

@@ -184,6 +184,8 @@ class CreditProvider(TimeStampedModel):
]
cache.set(cls.CREDIT_PROVIDERS_CACHE_KEY, credit_providers)
else:
log.info(u"Found %d credit providers from cache.", len(credit_providers))
if providers_list:
credit_providers = [provider for provider in credit_providers if provider['id'] in providers_list]