Attempt to fix the Windows regression test weirdness.

This commit is contained in:
Khushboo Vashi 2019-03-18 09:30:08 +00:00 committed by Dave Page
parent 8c5894dd6a
commit 31e17f025b

View File

@ -248,7 +248,7 @@ def create_app(app_name=None):
logger.addHandler(fh)
# Console logging
ch = logging.StreamHandler()
ch = logging.StreamHandler(sys.stdout.reconfigure(encoding='utf-8'))
ch.setLevel(config.CONSOLE_LOG_LEVEL)
ch.setFormatter(logging.Formatter(config.CONSOLE_LOG_FORMAT))
app.logger.addHandler(ch)