Skip to content

Commit 595dcb7

Browse files
committed
Fixed a silly bug in [18040]. 'settings' isn't a dictionary.
- Legacy-Id: 18043 Note: SVN reference [18040] has been migrated to Git commit e1ed51b
1 parent 649831e commit 595dcb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ietf/utils/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _flushfunc():
6262
pass
6363
_logfunc = logfunc
6464
if settings.SERVER_MODE == 'test':
65-
if settings.get('show_logging', False) is True:
65+
if getattr(settings, 'show_logging', False) is True:
6666
_logfunc = debug.say
6767
_flushfunc = sys.stdout.flush # pyflakes:ignore (intentional redefinition)
6868
else:

0 commit comments

Comments
 (0)