Fixed a couple of mypy errors.
- Legacy-Id: 17977
This commit is contained in:
parent
96bbf3457a
commit
c5f6883624
|
@ -251,7 +251,7 @@ LOGGING = {
|
|||
'class': 'logging.handlers.SysLogHandler',
|
||||
'facility': 'user',
|
||||
'formatter': 'plain',
|
||||
'address': '/dev/log'
|
||||
'address': '/dev/log',
|
||||
},
|
||||
'debug_console': {
|
||||
# Active only when DEBUG=True
|
||||
|
@ -313,7 +313,7 @@ LOGGING = {
|
|||
# other) custom log settings are wanted. Use "ietf/manage.py showloggers -l"
|
||||
# to show registered loggers. The content here should match the levels above
|
||||
# and is shown as an example:
|
||||
UTILS_LOGGER_LEVELS = {
|
||||
UTILS_LOGGER_LEVELS: Dict[str, str] = {
|
||||
'django': 'INFO',
|
||||
'django.server': 'INFO',
|
||||
}
|
||||
|
|
|
@ -22,8 +22,8 @@ from django.conf import settings
|
|||
|
||||
import debug # pyflakes:ignore
|
||||
|
||||
for logger, level in settings.UTILS_LOGGER_LEVELS.items():
|
||||
logger = logging.getLogger(logger)
|
||||
for name, level in settings.UTILS_LOGGER_LEVELS.items():
|
||||
logger = logging.getLogger(name)
|
||||
debug.say(" Setting %s logging level to %s" % (logger.name, level))
|
||||
logger.setLevel(level)
|
||||
|
||||
|
|
Loading…
Reference in a new issue