Fixed a silly bug in [18040]. 'settings' isn't a dictionary.

- Legacy-Id: 18043
Note: SVN reference [18040] has been migrated to Git commit e1ed51b0b6
This commit is contained in:
Henrik Levkowetz 2020-06-23 21:16:02 +00:00
parent 649831e7c7
commit 595dcb75e9

View file

@ -62,7 +62,7 @@ def log(msg, e=None):
pass
_logfunc = logfunc
if settings.SERVER_MODE == 'test':
if settings.get('show_logging', False) is True:
if getattr(settings, 'show_logging', False) is True:
_logfunc = debug.say
_flushfunc = sys.stdout.flush # pyflakes:ignore (intentional redefinition)
else: