DB logging
This commit is contained in:
parent
45e1340c35
commit
f70f9d61b4
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ def create_app(config_name):
|
||||||
|
|
||||||
db.init_app(app)
|
db.init_app(app)
|
||||||
|
|
||||||
|
import logging
|
||||||
|
logging.basicConfig()
|
||||||
|
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
|
||||||
|
|
||||||
from .main import main as main_blueprint
|
from .main import main as main_blueprint
|
||||||
app.register_blueprint(main_blueprint)
|
app.register_blueprint(main_blueprint)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue