fix(logging): request logs no longer show up twice

This commit is contained in:
Julian Lobbes 2022-12-01 20:12:24 +01:00
parent f501acf839
commit 180fccaf90

View File

@ -35,6 +35,7 @@ def create_app(test_config=None):
if not app.config['DEBUG']:
app.logger = logging.getLogger('lumi2')
app.logger.setLevel(logging.INFO)
app.logger.propagate = False
console_handler = logging.StreamHandler()
console_handler.setLevel(logging.INFO)