fix: remove logging (#30559)
This commit is contained in:
committed by
GitHub
parent
c6885e1607
commit
22e510d69b
@@ -88,11 +88,7 @@ def check_start_date(user, days_early_for_beta, start, course_key, display_error
|
||||
now = datetime.now(UTC)
|
||||
effective_start = adjust_start_date(user, days_early_for_beta, start, course_key)
|
||||
|
||||
# Todo: This log statement is added for temporary use only
|
||||
log.info('Python-dateutil logs: Comparing current date with effective start date')
|
||||
should_grant_access = now > effective_start
|
||||
# Todo: This log statement is added for temporary use only
|
||||
log.info('Python-dateutil logs: Successfully compared current date with effective start date')
|
||||
if should_grant_access:
|
||||
return ACCESS_GRANTED
|
||||
|
||||
|
||||
@@ -558,10 +558,6 @@ def get_course_assignments(course_key, user, include_access=False): # lint-amne
|
||||
if not user.id:
|
||||
return []
|
||||
|
||||
# Todo: This log statement is added for temporary use only
|
||||
log.info('Python-dateutil logs: Trying to get course assignment for user: {} of course: {}'.format(
|
||||
user.id, course_key))
|
||||
|
||||
store = modulestore()
|
||||
course_usage_key = store.make_course_usage_key(course_key)
|
||||
block_data = get_course_blocks(user, course_usage_key, allow_start_dates_in_future=True, include_completion=True)
|
||||
@@ -663,9 +659,6 @@ def get_course_assignments(course_key, user, include_access=False): # lint-amne
|
||||
_("Open Response Assessment due dates are set by your instructor and can't be shifted."),
|
||||
first_component_block_id,
|
||||
))
|
||||
# Todo: This log statement is added for temporary use only
|
||||
log.info('Python-dateutil logs: Successfully got course assignments for user: {} of course: {}'.format(
|
||||
user.id, course_key))
|
||||
return assignments
|
||||
|
||||
|
||||
|
||||
@@ -777,8 +777,7 @@ class BlockStructureBlockData(BlockStructure):
|
||||
"""
|
||||
if isinstance(field, datetime):
|
||||
if isinstance(field.tzinfo, tzlocal) and not hasattr(field.tzinfo, '_hasdst'):
|
||||
# Todo: This log statement is added for temporary use only
|
||||
logger.info('Python-dateutil logs: Making datetime field compatible to python-dateutil package')
|
||||
|
||||
return datetime(
|
||||
year=field.year, month=field.month, day=field.day,
|
||||
hour=field.hour, minute=field.minute, second=field.second,
|
||||
|
||||
Reference in New Issue
Block a user