Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lms/djangoapps/courseware/access_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 0 additions & 7 deletions lms/djangoapps/courseware/courses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,7 @@ def _make_datetime_field_compatible(self, field):
"""
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,
Expand Down