Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c7df4ed0
Commit
c7df4ed0
authored
Aug 30, 2016
by
Awais Jibran
Committed by
GitHub
Aug 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13348 from edx/aj/improve-registration-logging
Improve logging for email sending while registering.
parents
9655cb5f
e503ef3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
common/djangoapps/student/views.py
+7
-1
No files found.
common/djangoapps/student/views.py
View file @
c7df4ed0
...
@@ -1775,6 +1775,7 @@ def create_account_with_params(request, params):
...
@@ -1775,6 +1775,7 @@ def create_account_with_params(request, params):
)
)
)
)
if
send_email
:
if
send_email
:
dest_addr
=
user
.
email
context
=
{
context
=
{
'name'
:
profile
.
name
,
'name'
:
profile
.
name
,
'key'
:
registration
.
activation_key
,
'key'
:
registration
.
activation_key
,
...
@@ -1799,7 +1800,12 @@ def create_account_with_params(request, params):
...
@@ -1799,7 +1800,12 @@ def create_account_with_params(request, params):
else
:
else
:
user
.
email_user
(
subject
,
message
,
from_address
)
user
.
email_user
(
subject
,
message
,
from_address
)
except
Exception
:
# pylint: disable=broad-except
except
Exception
:
# pylint: disable=broad-except
log
.
error
(
u'Unable to send activation email to user from "
%
s"'
,
from_address
,
exc_info
=
True
)
log
.
error
(
u'Unable to send activation email to user from "
%
s" to "
%
s"'
,
from_address
,
dest_addr
,
exc_info
=
True
)
else
:
else
:
registration
.
activate
()
registration
.
activate
()
_enroll_user_in_pending_courses
(
user
)
# Enroll student in any pending courses
_enroll_user_in_pending_courses
(
user
)
# Enroll student in any pending courses
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment