fix(tests): make tests runnable by disabling access log in test mode
This commit is contained in:
parent
c3fb28f6e4
commit
b2223c6a78
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user