fix(tests): make tests runnable by disabling access log in test mode

This commit is contained in:
Julian Lobbes 2022-12-05 00:02:24 +01:00
parent c3fb28f6e4
commit b2223c6a78

View File

@ -32,7 +32,7 @@ def create_app(test_config=None):
pass
# Set up logging
if not app.config['DEBUG']:
if test_config is None and not app.config['DEBUG']:
app.logger = logging.getLogger('lumi2')
app.logger.setLevel(logging.INFO)
app.logger.propagate = False