From 595dcb75e9ae2eb60fad2ed7c585bf270233ddad Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 23 Jun 2020 21:16:02 +0000 Subject: [PATCH] Fixed a silly bug in [18040]. 'settings' isn't a dictionary. - Legacy-Id: 18043 Note: SVN reference [18040] has been migrated to Git commit e1ed51b0b6b1b763e3201ebd1ab418ecbb07fdc8 --- ietf/utils/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/utils/log.py b/ietf/utils/log.py index c2419b103..c6d8ebc88 100644 --- a/ietf/utils/log.py +++ b/ietf/utils/log.py @@ -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: