Skip to content

Commit c5f6883

Browse files
committed
Fixed a couple of mypy errors.
- Legacy-Id: 17977
1 parent 96bbf34 commit c5f6883

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def skip_unreadable_post(record):
251251
'class': 'logging.handlers.SysLogHandler',
252252
'facility': 'user',
253253
'formatter': 'plain',
254-
'address': '/dev/log'
254+
'address': '/dev/log',
255255
},
256256
'debug_console': {
257257
# Active only when DEBUG=True
@@ -313,7 +313,7 @@ def skip_unreadable_post(record):
313313
# other) custom log settings are wanted. Use "ietf/manage.py showloggers -l"
314314
# to show registered loggers. The content here should match the levels above
315315
# and is shown as an example:
316-
UTILS_LOGGER_LEVELS = {
316+
UTILS_LOGGER_LEVELS: Dict[str, str] = {
317317
'django': 'INFO',
318318
'django.server': 'INFO',
319319
}

ietf/utils/log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
import debug # pyflakes:ignore
2424

25-
for logger, level in settings.UTILS_LOGGER_LEVELS.items():
26-
logger = logging.getLogger(logger)
25+
for name, level in settings.UTILS_LOGGER_LEVELS.items():
26+
logger = logging.getLogger(name)
2727
debug.say(" Setting %s logging level to %s" % (logger.name, level))
2828
logger.setLevel(level)
2929

0 commit comments

Comments
 (0)