summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-03-24 08:33:56 -0400
committerTim Graham <timograham@gmail.com>2015-03-24 08:41:05 -0400
commit13bc311cdb11e590acf8942540d7db518d8082f9 (patch)
tree3f1c804a2803b395aae2bf20dd6fd831ff09cfaf /django
parent987e4b91d6f0307a622f955f2304146f7bbb3adb (diff)
Removed getLogger alias in django.utils.log.
Diffstat (limited to 'django')
-rw-r--r--django/db/backends/base/schema.py4
-rw-r--r--django/utils/log.py2
2 files changed, 2 insertions, 4 deletions
diff --git a/django/db/backends/base/schema.py b/django/db/backends/base/schema.py
index 24e8bc5413..167c95dbd0 100644
--- a/django/db/backends/base/schema.py
+++ b/django/db/backends/base/schema.py
@@ -1,12 +1,12 @@
import hashlib
+import logging
from django.db.backends.utils import truncate_name
from django.db.transaction import atomic
from django.utils import six
from django.utils.encoding import force_bytes
-from django.utils.log import getLogger
-logger = getLogger('django.db.backends.schema')
+logger = logging.getLogger('django.db.backends.schema')
def _related_non_m2m_objects(opts):
diff --git a/django/utils/log.py b/django/utils/log.py
index 93b25c3da8..7ccc532a05 100644
--- a/django/utils/log.py
+++ b/django/utils/log.py
@@ -12,8 +12,6 @@ from django.utils.encoding import force_text
from django.utils.module_loading import import_string
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
-getLogger = logging.getLogger
-
# Default logging for Django. This sends an email to the site admins on every
# HTTP 500 error. Depending on DEBUG, all other log records are either sent to
# the console (DEBUG=True) or discarded by mean of the NullHandler (DEBUG=False).