From 56d72cb887d01504222e80021186338e0a86ff06 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 18 Feb 2016 19:21:46 +0530 Subject: [PATCH] logging --- oml/db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oml/db.py b/oml/db.py index 29c2353..01f2574 100644 --- a/oml/db.py +++ b/oml/db.py @@ -11,6 +11,9 @@ from sqlalchemy.ext.declarative import declarative_base import settings import state +import logging +logger = logging.getLogger(__name__) + engine = create_engine('sqlite:///%s' % settings.db_path, connect_args={'timeout': 90}) Session = scoped_session(sessionmaker(bind=engine))