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
56f00438
Commit
56f00438
authored
Sep 03, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce logging severity from exception to error
parent
be55e36d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
openedx/core/djangoapps/credit/api/eligibility.py
+1
-1
openedx/core/djangoapps/credit/models.py
+7
-1
No files found.
openedx/core/djangoapps/credit/api/eligibility.py
View file @
56f00438
...
...
@@ -320,7 +320,7 @@ def remove_credit_requirement_status(username, course_key, req_namespace, req_na
# but that could cause serious performance issues if many users attempt to
# lock the row at the same time.
# Instead, we skip removing the requirement and log an error.
if
req_to_remove
is
Non
e
:
if
not
req_to_remov
e
:
log
.
error
(
(
u'Could not remove credit requirement in course "
%
s" '
...
...
openedx/core/djangoapps/credit/models.py
View file @
56f00438
...
...
@@ -482,7 +482,13 @@ class CreditRequirementStatus(TimeStampedModel):
requirement_status
=
cls
.
objects
.
get
(
username
=
username
,
requirement
=
requirement
)
requirement_status
.
delete
()
except
cls
.
DoesNotExist
:
log
.
exception
(
u'The requirement status does not exist against the username
%
s.'
,
username
)
log_msg
=
(
u'The requirement status {requirement} does not exist for username {username}.'
.
format
(
requirement
=
requirement
,
username
=
username
)
)
log
.
error
(
log_msg
)
return
...
...
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