Commit beda1f8b by David Baumgold

Merge pull request #1846 from edx/db/update-logging

Update logging.getLogger() calls to use edx instead of mitx
parents b33bb1a8 e26fc08d
......@@ -50,7 +50,7 @@ from xmodule.course_module import CourseDescriptor
from xmodule.modulestore import Location
from xmodule.modulestore.exceptions import ItemNotFoundError
log = logging.getLogger("mitx.external_auth")
log = logging.getLogger("edx.external_auth")
AUDIT_LOG = logging.getLogger("audit")
SHIBBOLETH_DOMAIN_PREFIX = 'shib:'
......
......@@ -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("mitx.discussion")
log = logging.getLogger("edx.discussion")
log.error(unicode(e))
log.error("update user info to discussion failed for user with id: " + str(instance.id))
......
......@@ -72,7 +72,7 @@ from pytz import UTC
from util.json_request import JsonResponse
log = logging.getLogger("mitx.student")
log = logging.getLogger("edx.student")
AUDIT_LOG = logging.getLogger("audit")
Article = namedtuple('Article', 'title url author image deck publication publish_date')
......
......@@ -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("mitx.courseware")
log = logging.getLogger("edx.courseware")
# Generate this many different variants of problems with rerandomize=per_student
......
......@@ -11,7 +11,7 @@ from collections import namedtuple
from .fields import Date, Timedelta
import textwrap
log = logging.getLogger("mitx.courseware")
log = logging.getLogger("edx.courseware")
V1_SETTINGS_ATTRIBUTES = [
"display_name",
......
......@@ -15,7 +15,7 @@ from xblock.fields import Scope, List
from xmodule.modulestore.exceptions import ItemNotFoundError
log = logging.getLogger('mitx.' + __name__)
log = logging.getLogger('edx.' + __name__)
class ConditionalFields(object):
......
......@@ -6,7 +6,7 @@ import sys
from collections import namedtuple
log = logging.getLogger("mitx.courseware")
log = logging.getLogger("edx.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
......
......@@ -16,7 +16,7 @@ from xmodule.xml_module import XmlDescriptor, name_to_pathname
import textwrap
from xmodule.contentstore.content import StaticContent
log = logging.getLogger("mitx.courseware")
log = logging.getLogger("edx.courseware")
class HtmlFields(object):
......
......@@ -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'
......
......@@ -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("mitx.courseware")
log = logging.getLogger("edx.courseware")
# Set the default number of max attempts. Should be 1 for production
# Set higher for debugging/testing
......
......@@ -23,7 +23,7 @@ from pytz import UTC
from .combined_open_ended_rubric import CombinedOpenEndedRubric
log = logging.getLogger("mitx.courseware")
log = logging.getLogger("edx.courseware")
class OpenEndedModule(openendedchild.OpenEndedChild):
......
......@@ -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("mitx.courseware")
log = logging.getLogger("edx.courseware")
# Set the default number of max attempts. Should be 1 for production
# Set higher for debugging/testing
......
......@@ -9,7 +9,7 @@ import openendedchild
from .combined_open_ended_rubric import CombinedOpenEndedRubric
log = logging.getLogger("mitx.courseware")
log = logging.getLogger("edx.courseware")
class SelfAssessmentModule(openendedchild.OpenEndedChild):
......
......@@ -9,7 +9,7 @@ from lxml import etree
from xblock.fields import Scope, Integer
from xblock.fragment import Fragment
log = logging.getLogger('mitx.' + __name__)
log = logging.getLogger('edx.' + __name__)
class RandomizeFields(object):
......
......@@ -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("mitx.courseware")
log = logging.getLogger("edx.courseware")
def yield_module_descendents(module):
......
......@@ -38,7 +38,7 @@ from xmodule.modulestore.search import path_to_location
from xmodule.course_module import CourseDescriptor
import shoppingcart
log = logging.getLogger("mitx.courseware")
log = logging.getLogger("edx.courseware")
template_imports = {'urllib': urllib}
......
......@@ -4,7 +4,7 @@ from django.db import models, transaction
from student.models import User
log = logging.getLogger("mitx.licenses")
log = logging.getLogger("edx.licenses")
class CourseSoftware(models.Model):
......
......@@ -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("mitx.licenses")
log = logging.getLogger("edx.licenses")
License = namedtuple('License', 'software serial')
......
......@@ -17,7 +17,7 @@ try:
except ImportError:
from django.contrib.csrf.middleware import csrf_exempt
log = logging.getLogger("mitx.lms_migrate")
log = logging.getLogger("edx.lms_migrate")
LOCAL_DEBUG = True
ALLOWED_IPS = settings.LMS_MIGRATION_ALLOWED_IPS
......
......@@ -18,7 +18,7 @@ from psychometrics.models import PsychometricData
from courseware.models import StudentModule
from pytz import UTC
log = logging.getLogger("mitx.psychometrics")
log = logging.getLogger("edx.psychometrics")
#db = "ocwtutor" # for debugging
#db = "default"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment