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
beda1f8b
Commit
beda1f8b
authored
Dec 04, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1846 from edx/db/update-logging
Update logging.getLogger() calls to use edx instead of mitx
parents
b33bb1a8
e26fc08d
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
21 deletions
+20
-21
common/djangoapps/external_auth/views.py
+1
-1
common/djangoapps/student/models.py
+1
-1
common/djangoapps/student/views.py
+1
-1
common/lib/xmodule/xmodule/capa_module.py
+1
-1
common/lib/xmodule/xmodule/combined_open_ended_module.py
+1
-1
common/lib/xmodule/xmodule/conditional_module.py
+1
-1
common/lib/xmodule/xmodule/graders.py
+1
-1
common/lib/xmodule/xmodule/html_module.py
+1
-1
common/lib/xmodule/xmodule/modulestore/__init__.py
+1
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+1
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
+1
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
+1
-2
common/lib/xmodule/xmodule/open_ended_grading_classes/self_assessment_module.py
+1
-1
common/lib/xmodule/xmodule/randomize_module.py
+1
-1
lms/djangoapps/courseware/grades.py
+1
-1
lms/djangoapps/courseware/views.py
+1
-1
lms/djangoapps/licenses/models.py
+1
-1
lms/djangoapps/licenses/views.py
+1
-1
lms/djangoapps/lms_migration/migrate.py
+1
-1
lms/djangoapps/psychometrics/psychoanalyze.py
+1
-1
No files found.
common/djangoapps/external_auth/views.py
View file @
beda1f8b
...
...
@@ -50,7 +50,7 @@ from xmodule.course_module import CourseDescriptor
from
xmodule.modulestore
import
Location
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
log
=
logging
.
getLogger
(
"
mit
x.external_auth"
)
log
=
logging
.
getLogger
(
"
ed
x.external_auth"
)
AUDIT_LOG
=
logging
.
getLogger
(
"audit"
)
SHIBBOLETH_DOMAIN_PREFIX
=
'shib:'
...
...
common/djangoapps/student/models.py
View file @
beda1f8b
...
...
@@ -702,7 +702,7 @@ def update_user_information(sender, instance, created, **kwargs):
cc_user
=
cc
.
User
.
from_django_user
(
instance
)
cc_user
.
save
()
except
Exception
as
e
:
log
=
logging
.
getLogger
(
"
mit
x.discussion"
)
log
=
logging
.
getLogger
(
"
ed
x.discussion"
)
log
.
error
(
unicode
(
e
))
log
.
error
(
"update user info to discussion failed for user with id: "
+
str
(
instance
.
id
))
...
...
common/djangoapps/student/views.py
View file @
beda1f8b
...
...
@@ -72,7 +72,7 @@ from pytz import UTC
from
util.json_request
import
JsonResponse
log
=
logging
.
getLogger
(
"
mit
x.student"
)
log
=
logging
.
getLogger
(
"
ed
x.student"
)
AUDIT_LOG
=
logging
.
getLogger
(
"audit"
)
Article
=
namedtuple
(
'Article'
,
'title url author image deck publication publish_date'
)
...
...
common/lib/xmodule/xmodule/capa_module.py
View file @
beda1f8b
...
...
@@ -24,7 +24,7 @@ from .fields import Timedelta, Date
from
django.utils.timezone
import
UTC
from
django.utils.translation
import
ugettext
as
_
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
# Generate this many different variants of problems with rerandomize=per_student
...
...
common/lib/xmodule/xmodule/combined_open_ended_module.py
View file @
beda1f8b
...
...
@@ -11,7 +11,7 @@ from collections import namedtuple
from
.fields
import
Date
,
Timedelta
import
textwrap
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
V1_SETTINGS_ATTRIBUTES
=
[
"display_name"
,
...
...
common/lib/xmodule/xmodule/conditional_module.py
View file @
beda1f8b
...
...
@@ -15,7 +15,7 @@ from xblock.fields import Scope, List
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
log
=
logging
.
getLogger
(
'
mit
x.'
+
__name__
)
log
=
logging
.
getLogger
(
'
ed
x.'
+
__name__
)
class
ConditionalFields
(
object
):
...
...
common/lib/xmodule/xmodule/graders.py
View file @
beda1f8b
...
...
@@ -6,7 +6,7 @@ import sys
from
collections
import
namedtuple
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
# This is a tuple for holding scores, either from problems or sections.
# Section either indicates the name of the problem or the name of the section
...
...
common/lib/xmodule/xmodule/html_module.py
View file @
beda1f8b
...
...
@@ -16,7 +16,7 @@ from xmodule.xml_module import XmlDescriptor, name_to_pathname
import
textwrap
from
xmodule.contentstore.content
import
StaticContent
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
class
HtmlFields
(
object
):
...
...
common/lib/xmodule/xmodule/modulestore/__init__.py
View file @
beda1f8b
...
...
@@ -13,7 +13,7 @@ from abc import ABCMeta, abstractmethod
from
.exceptions
import
InvalidLocationError
,
InsufficientSpecificationError
from
xmodule.errortracker
import
make_error_tracker
log
=
logging
.
getLogger
(
'
mitx.'
+
'
modulestore'
)
log
=
logging
.
getLogger
(
'
edx.
modulestore'
)
SPLIT_MONGO_MODULESTORE_TYPE
=
'split'
MONGO_MODULESTORE_TYPE
=
'mongo'
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
beda1f8b
...
...
@@ -13,7 +13,7 @@ from .combined_open_ended_rubric import CombinedOpenEndedRubric, GRADER_TYPE_IMA
from
xmodule.open_ended_grading_classes.peer_grading_service
import
PeerGradingService
,
MockPeerGradingService
,
GradingServiceError
from
xmodule.open_ended_grading_classes.openendedchild
import
OpenEndedChild
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
# Set the default number of max attempts. Should be 1 for production
# Set higher for debugging/testing
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
View file @
beda1f8b
...
...
@@ -23,7 +23,7 @@ from pytz import UTC
from
.combined_open_ended_rubric
import
CombinedOpenEndedRubric
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
class
OpenEndedModule
(
openendedchild
.
OpenEndedChild
):
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
View file @
beda1f8b
...
...
@@ -11,11 +11,10 @@ import controller_query_service
from
datetime
import
datetime
from
pytz
import
UTC
import
requests
from
boto.s3.connection
import
S3Connection
from
boto.s3.key
import
Key
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
# Set the default number of max attempts. Should be 1 for production
# Set higher for debugging/testing
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/self_assessment_module.py
View file @
beda1f8b
...
...
@@ -9,7 +9,7 @@ import openendedchild
from
.combined_open_ended_rubric
import
CombinedOpenEndedRubric
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
class
SelfAssessmentModule
(
openendedchild
.
OpenEndedChild
):
...
...
common/lib/xmodule/xmodule/randomize_module.py
View file @
beda1f8b
...
...
@@ -9,7 +9,7 @@ from lxml import etree
from
xblock.fields
import
Scope
,
Integer
from
xblock.fragment
import
Fragment
log
=
logging
.
getLogger
(
'
mit
x.'
+
__name__
)
log
=
logging
.
getLogger
(
'
ed
x.'
+
__name__
)
class
RandomizeFields
(
object
):
...
...
lms/djangoapps/courseware/grades.py
View file @
beda1f8b
...
...
@@ -22,7 +22,7 @@ from xmodule.graders import Score
from
.models
import
StudentModule
from
.module_render
import
get_module
,
get_module_for_descriptor
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
def
yield_module_descendents
(
module
):
...
...
lms/djangoapps/courseware/views.py
View file @
beda1f8b
...
...
@@ -38,7 +38,7 @@ from xmodule.modulestore.search import path_to_location
from
xmodule.course_module
import
CourseDescriptor
import
shoppingcart
log
=
logging
.
getLogger
(
"
mit
x.courseware"
)
log
=
logging
.
getLogger
(
"
ed
x.courseware"
)
template_imports
=
{
'urllib'
:
urllib
}
...
...
lms/djangoapps/licenses/models.py
View file @
beda1f8b
...
...
@@ -4,7 +4,7 @@ from django.db import models, transaction
from
student.models
import
User
log
=
logging
.
getLogger
(
"
mit
x.licenses"
)
log
=
logging
.
getLogger
(
"
ed
x.licenses"
)
class
CourseSoftware
(
models
.
Model
):
...
...
lms/djangoapps/licenses/views.py
View file @
beda1f8b
...
...
@@ -16,7 +16,7 @@ from licenses.models import CourseSoftware
from
licenses.models
import
get_courses_licenses
,
get_or_create_license
,
get_license
log
=
logging
.
getLogger
(
"
mit
x.licenses"
)
log
=
logging
.
getLogger
(
"
ed
x.licenses"
)
License
=
namedtuple
(
'License'
,
'software serial'
)
...
...
lms/djangoapps/lms_migration/migrate.py
View file @
beda1f8b
...
...
@@ -17,7 +17,7 @@ try:
except
ImportError
:
from
django.contrib.csrf.middleware
import
csrf_exempt
log
=
logging
.
getLogger
(
"
mit
x.lms_migrate"
)
log
=
logging
.
getLogger
(
"
ed
x.lms_migrate"
)
LOCAL_DEBUG
=
True
ALLOWED_IPS
=
settings
.
LMS_MIGRATION_ALLOWED_IPS
...
...
lms/djangoapps/psychometrics/psychoanalyze.py
View file @
beda1f8b
...
...
@@ -18,7 +18,7 @@ from psychometrics.models import PsychometricData
from
courseware.models
import
StudentModule
from
pytz
import
UTC
log
=
logging
.
getLogger
(
"
mit
x.psychometrics"
)
log
=
logging
.
getLogger
(
"
ed
x.psychometrics"
)
#db = "ocwtutor" # for debugging
#db = "default"
...
...
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