mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Deprecated django.utils.dictconfig.
The module still exists for whoever uses it in its current state, but it isn't imported by Django anywhere.
This commit is contained in:
@@ -562,7 +562,7 @@ MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
|
||||
###########
|
||||
|
||||
# The callable to use to configure logging
|
||||
LOGGING_CONFIG = 'django.utils.log.dictConfig'
|
||||
LOGGING_CONFIG = 'logging.config.dictConfig'
|
||||
|
||||
# Custom logging configuration.
|
||||
LOGGING = {}
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import warnings
|
||||
|
||||
warnings.warn("django.utils.dictconfig will be removed in Django 1.9.",
|
||||
PendingDeprecationWarning, stacklevel=2)
|
||||
|
||||
# This is a copy of the Python logging.config.dictconfig module,
|
||||
# reproduced with permission. It is provided here for backwards
|
||||
# compatibility for Python versions prior to 2.7.
|
||||
|
||||
@@ -16,12 +16,7 @@ except ImportError:
|
||||
def emit(self, record):
|
||||
pass
|
||||
|
||||
# Make sure that dictConfig is available
|
||||
# This was added in Python 2.7/3.2
|
||||
try:
|
||||
from logging.config import dictConfig
|
||||
except ImportError:
|
||||
from django.utils.dictconfig import dictConfig
|
||||
from logging.config import dictConfig
|
||||
|
||||
getLogger = logging.getLogger
|
||||
|
||||
|
||||
Reference in New Issue
Block a user