Commit a90dd1e8 authored by David Mendez's avatar David Mendez
Browse files

Add logging of the flask app to the rate limiter

parent 11b81e41
......@@ -44,6 +44,9 @@ def create_app():
CACHE.init_app(flask_app)
RATE_LIMITER.init_app(flask_app)
for handler in flask_app.logger.handlers:
RATE_LIMITER.logger.addHandler(handler)
create_tables = RUN_CONFIG.get('sql_alchemy').get('create_tables', False)
if create_tables:
DB.create_all()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment