From f70f9d61b4efd37e442f1e3d31c75c7af076ecd2 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 10 Oct 2015 14:12:27 -0700 Subject: [PATCH] DB logging --- app/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/__init__.py b/app/__init__.py index 8921b18..ec2f2ee 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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)