Skip to content

Commit

Permalink
chore: added a new info log to course update email (#36067)
Browse files Browse the repository at this point in the history
* chore: added a new info log to course update email

* chore: added a new info log to course update email
  • Loading branch information
eemaanamir authored Jan 1, 2025
1 parent ab6947f commit 645e898
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions openedx/core/djangoapps/schedules/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,13 @@ def send(self, msg_type):
language,
context,
)
LOG.info(
'Sending email to user: {} for Instructor-paced course with course-key: {} and language: {}'.format(
user.username,
self.course_id,
language
)
)
with function_trace('enqueue_send_task'):
self.async_send_task.apply_async((self.site.id, str(msg)), retry=False) # pylint: disable=no-member

Expand Down Expand Up @@ -469,6 +476,13 @@ def send(self): # lint-amnesty, pylint: disable=arguments-differ
self.course_id
)
)
LOG.info(
'Sending email to user: {} for Self-paced course with course-key: {} and language: {}'.format(
user.username,
self.course_id,
language
)
)
with function_trace('enqueue_send_task'):
self.async_send_task.apply_async((self.site.id, str(msg)), retry=False)

Expand Down

0 comments on commit 645e898

Please sign in to comment.