Fixed a logging issue when running the test crawler.

- Legacy-Id: 18040
This commit is contained in:
Henrik Levkowetz 2020-06-23 20:38:33 +00:00
parent 1e69b18f12
commit e1ed51b0b6

View file

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