File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 2222
2323import 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
You can’t perform that action at this time.
0 commit comments