Merge pull request #23427 from edx/logs-cleanup

Remove/Limit log.info
This commit is contained in:
Awais Jibran
2020-03-18 12:08:23 +05:00
committed by GitHub
2 changed files with 1 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ def matriculate_learner(user, uid):
if not authorizing_org:
return
except (AttributeError, ValueError):
logger.info('Ignoring non-saml social auth entry for user=%s', user.id)
logger.debug('Ignoring non-saml social auth entry for user=%s', user.id)
return
except SAMLProviderConfig.DoesNotExist:
logger.warning(

View File

@@ -331,7 +331,6 @@ def get_course_enrollment_details(course_id, include_expired=False):
log.exception(u"Error occurred while retrieving course enrollment details from the cache")
if cached_enrollment_data:
log.info(u"Get enrollment data for course %s (cached)", course_id)
return cached_enrollment_data
course_enrollment_details = _data_api().get_course_enrollment_info(course_id, include_expired)
@@ -344,7 +343,6 @@ def get_course_enrollment_details(course_id, include_expired=False):
log.exception(u"Error occurred while caching course enrollment details for course %s", course_id)
raise errors.CourseEnrollmentError(u"An unexpected error occurred while retrieving course enrollment details.")
log.info(u"Get enrollment data for course %s", course_id)
return course_enrollment_details