DB logging

This commit is contained in:
Matthew Dillon 2015-10-10 14:12:27 -07:00
parent 45e1340c35
commit f70f9d61b4

View file

@ -14,6 +14,10 @@ def create_app(config_name):
db.init_app(app)
import logging
logging.basicConfig()
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
from .main import main as main_blueprint
app.register_blueprint(main_blueprint)